Developer World - the fast track from mind to market
Member Login         Remember me Forgot login? Register now
2 Replies Last post: Sep 26, 2005 11:02 PM by Sony Ericsson Developer Support  
Click to view juniar's profile Newbie 1 posts since
May 10, 2004

Sep 26, 2005 11:02 PM

How J2ME know, current devices is Sony Ericsson?

Dear everybody,

What class/function to recognize that current device is Sony Ericsson?
I want to limit my application available for Sony Ericsson phone only. What class I should call?
And that function should be able to detect all Sony Ericsson Java enable phone, including MIDP1.0 (T610, T630),
MIDP2.0 (K500, K700, etc) and P8xx, P9xx Series

Thanks.

Best Regards
Juniar
Click to view markus_S.c's profile Newbie 9 posts since
Sep 21, 2005
1. Sep 26, 2005 10:46 PM in response to: juniar
re: How J2ME know, current devices is Sony Ericsso
hi juniar,

on some phones you can call the System.getProperty() - routine in the following way:

String platform = System.getProperty(quot[/quot]microedition.platformquot[/quot]);

this will give you the following result: SonyEricssonF500i/JAVASDK

but this might not work on all?!

well, hope this will help you solving your problem a little bit.

good luck,

markus.
Click to view Sony Ericsson Developer Support's profile Moderator 7,051 posts since
Jul 22, 2003
2. Sep 26, 2005 11:02 PM in response to: juniar
re: How J2ME know, current devices is Sony Ericsson?
Hey
Marcus is correct.

The System.getProperty(quot[/quot]microedition.platformquot[/quot])

will return a string that look like this on a real SE device:
SonyEricssonK700i/R2L001

where the first string beforequot[/quot]/quot[/quot] is the device name and the second string is the firmware.

If you running the code in an emulator the firmware version string will be: JAVASDK

Regards
/Johan