Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to access the Phone Number from the J2ME Application

  Asked By: Zobah    Date: May 03    Category: Java    Views: 2515

I need to access the Phone Number from the SIM card.
Is there any way to detect mobile phone number from application in j2me?



4 Answers Found

Answer #1    Answered By: Hadil Khan     Answered On: May 03

I guess you should be able to do this if your phone  support JSR 75 functionality to access  phone address data.
a copy of the JSR description:

- Personal Information Management (PIM) - This package gives J2ME devices access to personal information management data that resides natively on mobile  devices. Information to be accessed are contained in address books, calendars, and to-do lists residing in many mobile devices.

Answer #2    Answered By: Dale Jones     Answered On: May 03

The SIM Card just contains the IMSI, International mobile  Subsciber Identity.
Whenever you make a call, you are passing the IMSI to the center where your phone  number is saved.
I think (I'm not sure) by implementing the getSubscriptionId() method of javax.telephony.mobile.MobileAddress interface you can catch the IMSI!

Answer #3    Answered By: Nicolas Costa     Answered On: May 03

IMSI is not the only containment of SIM card.

Answer #4    Answered By: Djoser Massri     Answered On: May 03

Yes, IMSI is not the only value kept in a SIM; but it's the most general value to make the SIM unique!

Didn't find what you were looking for? Find more on How to access the Phone Number from the J2ME Application Or get search suggestion and latest updates.