This is my code.
TelephonyManager mTelephonyMgr = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); String sDeviceID = mTelephonyMgr.getDeviceId(); String sSimSerial = mTelephonyMgr.getSimSerialNumber(); String sSimlineNumber = mTelephonyMgr.getLine1Number();
with this, I want to read the user's phone number from my SIM card, and also add READ_PHONE_STATE to the manifest file. Eclipse does not show errors in my code, but still I get nothing at the end. Is there something wrong with my code?
user1014191
source share