Skip to content Skip to sidebar Skip to footer

TelephonyManager Give Me Null

Telephone Manager give me Null phone number while i have use this code - TelephonyManager tMgr=(TelephonyManager)getSystemService(TELEPHONY_SERVICE); String mPhoneNumber = tMgr.get

Solution 1:

getLine1Number(); returns whatever is stored on the SIM card's MSISDN, which isn't filled by some operators.

In your case i am pretty much sure The MSISDN is unfilled.

You should keep one thing in mind.

getLine1Number() sometimes return with null value or with the phone number originally stored in SIM card.


Post a Comment for "TelephonyManager Give Me Null"