List of properties

Is there a list of available properties for System.getProperty()?I need to find out if the application runs on a Palm or another device.
[157 byte] By [mopfattn] at [2007-9-26 8:02:55]
# 1

[mopfattn],

Some the J2ME properties that you can get from using System.getProperty() are :

microedition.configuration

microedition.platform

microedition.locale

microedition.encoding

microedition.encodingClass

microedition.http_proxy

Probably the microedition.configuration and microedition.platform will give you the information that you need i.e. which CLDC configuration version that the device supports and whether it is a j2me supported device.

HTH.

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
[mopfattn],There is also the microedition.profiles property that you can use.HTH.Allen LaiDeveloper Technical SupportSUN Microsystems http://www.sun.com/developers/support/
allenlai at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Dear Mr. Laican you give a complete list of all system properties available on j2me platform, please? this would help me a lot! many thanks in advance.frascic
frascic at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
There really isn't a standard on what properties are available with System.getProperty(). It varies from phone to phone, so compiling a full list is not really possible.shmoove
shmoove at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
hi shmoovethanks for your advice. so I should consult instead the documentation of each manufacturer to get the information I need. Am I right?frascic
frascic at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
Exactly.But documentation like that is hard to find.shmoove
shmoove at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

Hi,

I was retrieving the device information using both palmOS emulator and a real palm device, and I noticed that the method System.getProperty("microedition.locale") returns null.

Anybody know why? For other properties this method return normally..

Thanks

Ricardo

ric_ito at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

Is any way you can set the microedition.http_proxy property with j2me?

In j2se you can do:

System.getProperties().put( "proxySet", "true" );

System.getProperties().put( "proxyHost", proxyHost );

System.getProperties().put( "proxyPort", proxyPort );

and works OK.

Any ideas?

arturo-san at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9
In J2me MIDP profile, you can not set properties by using "System".you can create like properties file and store the information. whenever you need it you can call it. Here you can use RMS to store the value in future use also.
rshanmoogam at 2007-7-1 18:22:55 > top of Java-index,Java Mobility Forums,Java ME Technologies...