I am using the code
TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(
This is a known issue. Many SIM across the globe would return null. You should rather use IMEI number however even that can return null.
TelephonyManager.getDeviceId()