Several details on Motorola J2ME development

Source: Internet
Author: User
Tags zip

1. Motorola V-Series J2ME icon display

Motorola's V-series J2ME The program icon size must be the size of the 15*15. And you have to fill out the icon name in the Midlet-icon. You can't just fill in the MIDlet-1. Nokia's mobile phone does only fill in here.

2. Limitations on storage space

Motorola's cell phone's RMS storage space if not specifically given in the midlet-data-size, then the default is only 8K or 12K, I do not remember clearly. Therefore, it is necessary to midlet-data-size the exact size of the RMS required. The general Moto Mobile phone, the maximum support 64K RMS space.

3.Motorola Network Download problem

Moto phones sold in China, network connection points are fixed to cmwap on the default. Therefore, the general J2ME network connection method, is unable to pass through the Cmwap gateway. There are two solutions.

1) Change the connection point on the phone. In fact, you just have to create a new connection point, no information to fill, and then set the default connection point above, it can automatically become a cmnet connection point. So the general J2ME Network access mode is OK.

2) Adopt Cmwap connection mode. This requires changes in the procedure.

For example, I want to download such a data file: Png/1.png

So the way it's coded is:

c= (HttpConnection)Connector.open("http://10.0.0.172:80/1.png,Connector.READ,true);
c.setRequestProperty("X-Online-Host", "211.136.87.234");
c.setRequestProperty("Accept", "*/*");
is = c.openInputStream();

The 10.0.0.172 is a mobile cmwap gateway.

4. There is no MIDP2.0 support when using WTK104 packaging.

Mobile Treasure Box testing, it is recommended that the best use of WTK packaging, so that the class file call API purest. But Moto's phones are mostly MIDP2.0, and WTK104 only supports MIDP1.0. There will be an error when packing.

The solution is the same as Nokia's. Manually add several MIDP2.0 APIs to the Libmidpapi.zip and Wtklibemptyapi.zip inside the WTK. With WinRAR software, directly from the Moto SDK, drag in.

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.