Application Properties

In chapter 2, you learned about the presence of certain MIDlet attributes that are defined in the JAD file of each MIDlet suite. Recall that all MIDlets have required attributes. Table 2.4 in chapter 2 listed the required MIDlet attributes that reside in the application descriptor file. A MIDlet can access the values of these attributes at runtime through the application management software.

When the AMS installs a MIDlet suite on the device, it places the MIDlet JAD file in a specific location under its control. When a MIDlet is started, the AMS reads the JAD file and builds a data structure of application attributes. A MIDlet can read the value of an attribute using the MIDlet class method

 String getAppProperty(String ...

Get Wireless J2ME™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.