Hi vsriram,
In BlackBerry JDE 4.1, the
Phone class (net.rim.blackberry.api.phone.Phone) introduces a new method that retrieves the phone number of a BlackBerry wireless device:
Code:
public static String getDevicePhoneNumber(boolean format);
If the phone number is listed as
Unknown in the Phone application of the BlackBerry device, the
getDevicePhoneNumber() method returns
null.
Cause
A new SIM card can cause the
Unknown phone number.
Resolution
Once the SIM card is activated, the phone number is pushed wirelessly to the device. If the phone number is still
Unknown after activation, complete the following:
1. On the device Home screen, click
Options and select
SIM card.
2. Click the trackwheel and select
Edit SIM Phone Number.
3. Type the phone number and click the trackwheel to save your changes.
4. Restart the device to have the phone number appear in the Phone application.
Hope this will resolve!
Cheers,
ARIF