• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is there any other way to get sim number

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
Android C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic