I am trying to read the phone number of the device using the following code. When phone number is not available I read the subcriber id. It works in some phones and throws N
In order to get the phone number from the device , first you have to set your own phone number on the device, just go through :
Settings -> About Phone -> Status -> My phone Number
When you call this code:
MyPhoneNumber = tMgr.getLine1Number();
It's the stored number is actually returning.