simple midlet question

Hi how can you retrieve a MIDLETS properties ie the name of the midlet and the version?Also is there a way to retrieve what device a user has? ie nokia, samsung etc? im not particularly interested on the actual model number but just the company
[258 byte] By [jonney69a] at [2007-11-27 5:01:02]
# 1

> Hi how can you retrieve a MIDLETS properties ie the

> name of the midlet and the version?

MIDlet.getAppProperty("MIDlet-Name")

MIDlet.getAppProperty("MIDlet-Version")

> Also is there a way to retrieve what device a user

> has? ie nokia, samsung etc? im not particularly

> interested on the actual model number but just the

> company

System.getProperty("microedition.platform")

Dan

rhu6ar6a at 2007-7-12 10:18:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
thx geeza
jonney69a at 2007-7-12 10:18:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

hi i have tried using this:

String name = MIDlet.getAppProperty("MIDlet-Name");

String version = MIDlet.getAppProperty("MIDlet-Version");

but i get a error saying that a none static method of getAppProperty cannot be reference from a static context?

jonney69a at 2007-7-12 10:18:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
i got it working. but the system.getproperty doesnt return the phone's make ie nokia, samsung, etc..what are the list of keys i can use to retrieve the phones make and model? thanks
jonney69a at 2007-7-12 10:18:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

> i got it working. but the system.getproperty doesnt

> return the phone's make ie nokia, samsung, etc..

It works on Nokia phones. At least the dozen or so I work with. I get this "NokiaN90-1/2.0527.2.3" on my N90. The property is specified in the CLDC spec (1.0 and 1.1) but the value is vendor dependent (I guess some would choose to not implement it).

> what are the list of keys i can use to retrieve the

> phones make and model? thanks

I think there is only one property that describes the platform unless the vendor chooses to add a non-standard property to provide more information.

rhu6ar6a at 2007-7-12 10:18:15 > top of Java-index,Java Mobility Forums,Java ME Technologies...