I want to uniquely identify Sim, but if I am using TelephonyManager getLine1Number()
it always return null, if I am using TelephonyManager getDeviceId()
it is returned even without sim. So the question is that how can I uniquely identify SIM?
Asked
Active
Viewed 58 times
0

Raees Khan
- 371
- 1
- 5
- 20
-
Possible duplicate of [getLine1Number() Returns blank, not null](http://stackoverflow.com/questions/21497766/getline1number-returns-blank-not-null) – Jack Wilsdon Feb 04 '17 at 23:20
-
1The device ID for a GSM phone identifies the phone. AFAIK, `getSubscriberId()`, which returns the IMSI, identifies the subscriber. – CommonsWare Feb 04 '17 at 23:21