File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes is there any other way to get sim number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "is there any other way to get sim number" Watch "is there any other way to get sim number" New topic
Author

is there any other way to get sim number

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1161
I need to get the sim number programtically in android.I used below
telephonyManager.getLine1Number(); but it always get get null values.

is there any other ways to get sim no?
sonu raj
Ranch Hand

Joined: Jul 31, 2012
Posts: 43

Hi,
Mobile number is only available if your device is able to get it otherwise this method will return null. There is another way to get phone number if 'whatspp' is installed on the device

 
GeeCON Prague 2014
 
subject: is there any other way to get sim number