Several details about the development of Motorola j2s

Source: Internet
Author: User

When developing the MOTO product, you may encounter some details. It is annoying, but it is often difficult for many people. The following are some of the problems I have solved from my actual development experience.
1. Motorola V series J2's icon display
Motorola's V-series mobile phone's j2_program icons must be 15*15 characters in size. the Icon name must be specified in the MIDlet-Icon. not just in MIDlet-1. nokia's mobile phone can only be entered here.
2. Restrictions on storage space
If the RMS bucket of Motorola's mobile phone is not specified in MIDlet-Data-Size, the default bucket is 8 K or 12 K. I cannot remember it clearly. Therefore, the specific RMS Size must be given in the MIDlet-Data-Size file. Generally, MOTO phones support up to 64 kb rms space.
3. Network download problems for Motorola
For MOTO mobile phones sold in China, the network connection points are fixed to CMWAP by default. Therefore, the general method of connecting to the j2s network cannot pass through the CMWAP gateway. There are two solutions.
1) change the connection point on the mobile phone. In fact, you only need to create a new connection point without entering any information, and then set the default connection point above, it will automatically become a CMNET connection point. Then, you can access the network in the general mode of j2-based network.
2) use the CMWAP connection method. This requires some changes to the program.
For example, to download a data file: yun_qi_img/1.png
The code is as follows:
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 ();
10.0.0.172 is the mobile CMWAP gateway.
4. When using WTK104 for packaging, there is no MIDP2.0 support.
We recommend that you use WTK for packaging during the testing of mobile treasure chest. In this way, the APIs called by CLASS files are the purest. However, most of MOTO's mobile phones are MIDP2.0, while WTK104 only supports MIDP1.0. An error occurs during packaging.
The solution is the same as that of NOKIA. Manually add several midp2.0apito libmidpapi.zipand wtklibemptyapi.zip in wtk. Use WinRar software and drag it directly from the moto sdk.

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.