How to learn J2ME

zhaozj2021-02-16  96

It is very busy now, and there is no time to write technical articles recently. So talk about some of yourself to learn J2ME. I hope to be helpful. At the same time, welcome everyone to talk about your feelings!

With a good Java language foundation, don't have to learn a Java language, pick up a J2ME book. This effect is not good. On the contrary, if you have a good Java language basis, J2ME is easier to master! If you decide to start learning J2ME, then you should first know what the J2ME architecture is like. When you really know the relationship between Configuration and Profile, after you understand the difference between CDC and CLDC, then you can start writing your own HelloWorldMidlet, and the J2ME's development environment is flexible. I recommend using Eclipse and EclipseMe plugins. Because Eclipse's plugins are very rich and flexible, you can install Lomboz when you use the networked application. Of course, you can also choose the JBuilder and other IDEs, but do not recommend Notepad! Read more about your good code before writing the code. After all, the MIDLET is written and the general Java Application is not very the same. Recommend the DEMO program in WTK. The MIDP's API DOC is relatively small, and each class is very small. If there is time, look 4-5 every day. This will help you. After all, its API and J2SE are different, but its subset, should not be used. It is clear that the use and differences of advanced UI and low-level UI classes in MIDP. Before you do user interface, think about what meets your requirements, it is recommended to use advanced UI, which is simpler, which is more portable. But don't hesitate when you need to use Canvas! Clear a mechanism for advanced events and low-level event processing. Try to use MVC mode when developing applications, so extensibility is excellent. Thoroughly master Record Management System, this is an important subset of MIDP. Implementing data persistence storage is indispensable. Be good at using Recordfilter and Recordenumeration to simplify the operation of RMS, there is a series of RMS articles in my blog, and have time to take a look! Pay attention to the thread, if you don't really know the thread, then find the information to see it. This is very important in the development of J2ME. The ability to have the network is inserted with your application, while the network is used to avoid clogging must use multi-threaded technology. Always pay attention to the latest technology, such as Pim, Bluetooth, etc. are slowly supported. You can use WTK2.2 development related programs. Master the Java Chinese issue, this problem is more prominent in J2ME. You should put your app on your phone to test this problem instead of on the simulator. Io doesn't need to say that you must clearly, in the IO package provided in J2ME, you should pay more attention to you. Don't listen to the restriction of mobile resources, you will worry about it when you write, don't sacrifice the readability and maintainability of the code, but you can't use it. At this time, your Java language has played an important role! If you want to develop games, you should read more books. I have a book (electronic version) for J2ME games (electronic version). If you want to see, you can contact me, http://javap2p.nease.net/book/j2me_gamingbook_pdf.zip If some problems don't understand for a long time, you can I asked on the forum, but I would like to ask if I have a problem. After thinking about it, I get the correct answer. Or put the problem for a few days, maybe it will naturally understand! Not Hu said. Write more than one! Summary! Simple eight words, very important :)

转载请注明原文地址:https://www.9cbs.com/read-10476.html

New Post(0)