Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What details should be paid attention to when developing Motorola J2ME?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this issue, the editor will bring you what details you need to pay attention to when developing Motorola J2ME. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

In the actual development of MOTO products, we will encounter some details. It's annoying, but it's often difficult for many people. Here are some of the problems I got from my actual development experience. I hope it will be helpful to your study.

A few details about MotorolaJ2ME development

In the actual development of MOTO products, we will encounter some details. It's annoying, but it's often difficult for a lot of people. here are some of the problems I've learned from my actual development experience.

This paper gives four details that need to be paid attention to in the development of Motorola mobile phone using J2ME for your reference!

1. The icon display of J2ME of MotorolaV series

The icon size of the J2me app for Motorola's V series phones must be 1515, and the icon name must be filled in the MIDlet-Icon, not just in the MIDlet-1. It is true that Nokia's phone can only be filled in here.

2. The limitation of storage space

If the RMS storage space of Motorola's phone is not specified in MIDlet-Data-Size, then the default is only 8K or 12K, I can't remember clearly. Therefore, the specific RMS required size must be given in the MIDlet-Data-Size. Generally speaking, MOTO mobile phones support 64K RMS space.

3. The problem of downloading Motorola on the Internet

For MOTO phones sold in China, the network connection points are fixed to CMWAP by default. Therefore, the general method of J2ME network connection can not go through the gateway of CMWAP. There are two solutions.

1) change the connection point on the phone. In fact, as long as you casually create a new connection point, do not fill in any information, and then set the default connection point on it, it can automatically become a CMNET connection point. In that case, the general way of J2ME network access is fine.

2) CMWAP connection mode is adopted. This requires a change in the procedure.

For example, I want to download a data file: https://cache.yisu.com/upload/information/20210521/366/482739.png

Then 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. There is no MIDP2.0 support when using WTK104 to package.

When moving the test of the treasure box, it is recommended to use WTK packaging, so that the API called by the CLASS file is the purest. But most of MOTO's phones are MIDP2.0, while WTK104 only supports MIDP1.0. There will be errors when packing.

The solution is the same as NOKIA's. Manually add a few API of MIDP2.0 to lib\ midpapi.zip and wtklib\ emptyapi.zip in WTK. With WinRar software, directly from the SDK of MOTO, drag into it.

These are the details that the editor needs to pay attention to when developing Motorola J2ME for you. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report