|
How to print values of Midlet application properties |
|
|
This Java tip prints the values of the standard MIDlet application
properties to standard output. MIDlet attributes, or properties,
are different from system properties. You can define an unlimited
number of optional MIDlet attributes in addition to the predefined,
required ones.
/* Prints application properties using the
MIDlet.getAppProperty() call.*/
protected void printAppProperties()
{
System.out.println(getAppProperty("MIDlet-Name"));
System.out.println(getAppProperty("MIDlet-Jar-Size"));
System.out.println(getAppProperty("MIDlet-Jar-URL"));
System.out.println(getAppProperty("MIDlet-Vendor"));
}
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.