Using Java ME with MIDP 1.0 or MIDP 2.0 you can send and receive information from/to a webserver using HTTP protocol. If you want to send data using POST method, you should use this code:
First load the required libraries:
Code:
import javax.microedition.io.*;
import java.io.*;
Then use this code in a function...   
阅读全文
CLDC 1.0 不支持浮点运算,CLDC 1.1支持(这是两个版本的最主要区别)
Requirement和范围Scope:
硬件要求:CLDC规范并没有任何硬件要求,只是提出了最小内存的要求限制
At least 160 kilobytes of non-volatile memory is available for the virtual machine and CLDC libraries.
At ...   
阅读全文
CLDC
out momory 一阵天旋地转内存又溢出了。在手机上这种痛苦经常都有,套一句俗话在手机上用内存必须勒紧裤腰带。虽然现在pc内存上G都不奇怪,可是在手机上却只能以K来记,可能某位同志会马上跳出来说也有上M的,记住中国还不富大多数手机都是低端手机。写手机程序让我仿佛回到了dos时代(自我安慰一下那个时代也炼出了不少高手说不定我是下一个)。言归正传做内...   
阅读全文
优化
Nokia S60的几个问题
1. 不能每帧调用 System.gc(),否则严重降低fps
2. Nokia S60机器的不同机型对于translate 和 setClip的处理不一样。在Nokia N-Gage QD等机型中,setClip是相对于translate以后的坐标计算的,而在Nokia 6600,6670等机型中,setClip不受translate的影响,永远只相对于屏幕左上角(0,0)点计算。所以如果在Nokia6670中,使用先translate再set...   
阅读全文
Many phones use many different size icons to display next to the applications name. Please add to and edit this list when you can confirm exactly what the maximum icon size is for a specific phone.
NOTE: Many sellers, especially the operators, insist on an application having a build with the correct icon size in it for every phone ...   
阅读全文
The MMAPI Packages
MMAPI comprises three packages:
javax.microedition.media provides some interfaces, an exception, and the Manager class, which is the access point for obtaining system-dependent resources such as Players for multimedia processing.
javax.microedition.media.control defines the specific control types that...   
阅读全文
MMAPI