Beginner J2ME must read the user to learn notes

Source: Internet
Author: User

This is the article I wrote to my friends last year and I hope it will help you.

A little experience in developing mobile games

Selection and configuration of application development environment

March 2003, I just started to contact the development of mobile games. The development of mobile phone game program, initially just out of interest and hobbies, the use of their own land in the spare time to continue to write some code, got some experience, was originally wanted to Shing, but the encouragement of friends, so I decided to put their own little experience to write out, To comfort the tens of thousands of brain cells that I have died in my studies, and to provide some trivial help to the people who have struggled with the dark.

Because of my own mobile application development is also a beginner, if there are any problems in the article, but also hope that readers Haihan. Many people have asked me on the Internet, the development of mobile applications is not sure to buy a real mobile phone platform, my view is just beginning to learn when not necessarily to buy mobile phones, first on the internet to see more questions, the Platform's development environment configured, in the simulator on the first solo drill, But I suggest that if you really need to make a product of your work, it is best to have a real mobile phone platform for testing, because in the simulator's operating environment with a lot of operating effects and the real equipment environment is still very large access, in the simulator platform to run a good program may not be on the real equipment on the OK, What's more, you must be as eager as I am to be able to take out my mobile phone show a program of my own anytime and anywhere.

How to choose the tools of development is also a lot of people in preparation for the study to ask before, but this is also really difficult to answer, in the current mainstream mobile phone development platform is basically the Warring States era, the princes of your song came to my debut, each has its own advantages, each has its own drawbacks, only I know, The current smartphone operating system is mainly Microsoft's smartphone (this is based on the WinCE platform), Symbian (this is for Nokia, Sony Ericsson, Siemens and other major mobile phone manufacturers support) and brew (this is Qualcomm's) and so on, I'll talk about how to choose these kinds of development platforms from the point of view of the program personnel.

If you are a good Windows program designer, and have a special case for MS, OK, you can try the development of smartphone based on wince platform, and download his free embedded Visual C + + on Microsoft's website. 4.0 and Smartphone simulator, after installation, you can work in the familiar Visual C + + environment, and even like C # comrades can choose Visual Studio. Net 2003 and start your work in this environment, everything is so familiar. As for the shortcomings, well, is to start and run the simulator is too slow, debugging a program you still need to pay some patience, hehe.

If you're like me. Mobile phones are in the Nokia 60 series, you can consider to learn Symbian, Symbian is a major wireless communications technology company owned by the software company, it provides an intelligent mobile phone platform SymbianOS, mainly Nokia, Siemens, Sony Ericsson and so on, He is Microsoft's biggest competitor on the smartphone platform.

Symbain also supports C + + development and Java development. But learn Symbian above C + + development also need a difficult painful process, you can first in Nokia's developer site download Nokia related and Symbain development tools NS60_SDK series, after installation can be integrated into the VC6 environment, There are also several items that need to be paid attention to during installation (the installation of the problem, and the query on the forum is also very much).

First of all, you have to ensure that your operating system is Windows2000 + SP2 or above configuration;

Second, you need to install SP3 above the patch on your VC6, (hehe, I installed is SP5 about hundreds of trillion bar )

Third, the installation of NS60_SDK to consider installed on the C disk, this is not on the Internet, but if you and I have just installed the time there has been a failure of the record, so the disease nasty Touyi, will be installed in the C-disk;

Four, and most importantly, make sure that you also have Perl and JDK1.3 installed on your NS60_SDK's unified drive, because ns60_sdk1.2 didn't carry two things, so I installed the ns60_sdk1.0

Finally, be sure to make sure that you build your application with the same path letter as ns60_sdk1.0, (in my case it is also the C disk) to ensure that the system's environment variable path exists in these tools.

When all of these are configured, you can copy avkonappwiz.awx and Avkonappwiz.hlp files to Visual C + + template (c:\Program Files\Microsoft Visual Studio\ common\msdev98\template) directory, and then start your VC6, follow the wizard to select the Nokia SDK, and then step by step, click OK can generate your application framework, Yi, bad, how to see the "c:\Symbian\6.1 \SERIES60\EPOC32\BUILD\TEST\GROUP\TEST\WINS\TEST.DSW the specified project could not being inserted into the current Workspa CE. " This mistake, do not be nervous, a lot of people have come across, look back and see what place is not set, especially to pay attention to the configuration of the environment path.

Well, then you can officially enter the learning development, Nokia SDK with help and examples may be very helpful to you. It is said that foreign experts can put this SDK installation configuration in the Vs.net development, oh, really fierce, at least I have not succeeded.

The above is the NOKIA60 series of development steps, if you need to develop the Sony Ericsson P800 (This is also my dream of a good machine), can download his tools UIQ to develop.

Brew is a good friend of mine development tool, it is Qualcomm launched the wireless binary operating development operating environment, but also must be on the high Qualcomm's specific hardware platform to run. With the help of friends, I downloaded his brew_sdk_20zn on Qualcomm's website, his development environment is also based on VC6 (hehe, Microsoft must regret why the development tools are so generic, so that rivals are taking them in succession), As you go into the wizard-generated code framework you will find that brew suddenly requires you to fill in a classid, this is to ensure that the registration information in the machine is unique, if you are doing a test program, you can use the Brew SDK with the tool MIF editor to generate the corresponding ClassID, and run it on the simulator.

But if you need to run on a real-world platform device, you have to register on Qualcomm's website, become his developer, and of course pay a certain fee to him every year ($) before you can get the actual classid from his site and test on the hardware environment, Otherwise you can only generate local classid through the MIF editor it's generate income to run on the simulator.

Brew's development model is basically similar to Symbain, are in the VC development environment compiled code, generate a complete dynamic library, and then run the simulator executable program load dynamic library, you can debug the application logic, if debugging through, Can be compiled by the relevant tools to the underlying hardware device executable binary code, such as arm, through the packaging download can be run on your phone.

OK, as for the difference between the two of them, um ... Brew is a purely C-language development, it simulates a COM-like architecture through a unique set of mechanisms, and Symbian, the complete C + +, internally implements a complete class library system (very similar to MFC) to develop applications that actually run on Symbain. Their class libraries are quite different in their ability to adapt to their own platforms.

In fact, Symbain and brew as an embedded system development architecture, are based on the C + + idea, in their application framework can see many C + + ideas of the impact of the brand. For example, I've always had a COM prototype in my mind when I was learning brew (many of his components were loaded and run very much alike), and while learning about Symbian's object memory management mechanism, it was also evident in the use of C + + 's internal mechanism seeks to implement a Java-like model for automatic memory management, allocation, and cleanup, which ensures that its memory management is absolutely secure.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.