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
TelephonyManager tm = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
String number = tm.getLine1Number();