How to retrieve Midlet attribute value from jad
Article Metadata
The following code helps to retrieve an attribute value from the jad entry buy using
MIDlet.getAppProperty("MIDlet-Vendor")
In this case it will return the value of MIDlet-Vendor from the JAD file.
In addition to the required attributes, you can also store your own settings in the JAD file (like the server to connect to), and access them with getAppProperty method call. Note that you can change the contents of the jad file even after signing.


.jad stands for Java Archive Details, file describes the contents and properties of the .jar file. Generally .jad file will be automatically generated when .jar generates. .jad file contains very valuable information of .jar file so sometimes it become so important to get the those info from .jad file. To do this we simply need to write MIDlet.getAppProperty("MIDlet-Vendor")for example. Details on writing our custom attributes in .jad file explained so nicely.
--kalki 08:00, 29 September 2009 (UTC)