It's not a secret anymore!*
The moose likes Java Micro Edition and the fly likes How to get device name and phone number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to get device name and phone number" Watch "How to get device name and phone number" New topic
Author

How to get device name and phone number

Debojit Nag
Ranch Hand

Joined: Jul 19, 2005
Posts: 44
Hi all,
Could any one of you have any idea about how to get device name,ie, model number,say, Nokia 6255 and phone number. It is needed at runtime.
Thanx in advance.

Debojit


Thanks,<br />Debojit Nag
James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Hiya Debojit,

To get the phone make/model, use System.getProperty("microedition.platform").

The only way to get the phone number that I know of is to insert the users phone number into the jad file when the midlet is requested (maybe via a Java servlet) and retrieve it at runtime using MIDlet's getAppProperty() method.

Cheers,
James
Debojit Nag
Ranch Hand

Joined: Jul 19, 2005
Posts: 44
Hi
Thanx a lot. It is working. The phone number van also be found from
System.getProperty(wireless.messaging.sms.smsc),I guess.

Debojit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get device name and phone number