在MIDlet类里面有一个方法叫getAppProperty,取出键值的,那怎么添加键值对呢?
eclipse新建MIDlet项目的时候都会生成一个Application Descriptor,里面有个User Defined就是放键值对的。
eclipse的HELP上有写:
User Defined
The User Defined page is used to manage custom entries relating to your particular MIDlet.
The properties configurable in this page are:
Item | Contents |
---|---|
Key | The key string used to retrieve the value. |
Value | The value associated with the key. |
以后就可以把一些信息放这个里面了。
打包的时候我也注意了下,jad和MANIFEST里都会有。