Get Mobiel number Progrmatically

  • Replies:2
  • OpenNot stickiedUnanswered
  • Forum posts: 2

Feb 8, 2016 11:22:49 AM via Website

How do i get mobile number from programatically in android in dual sim mode.

  • Forum posts: 2

Feb 8, 2016 2:19:04 PM via Website

TelephonyManager tMgr = (TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
String mPhoneNumber = tMgr.getLine1Number();

In AndroidManifest file add this line

  • Forum posts: 2

Feb 9, 2016 5:25:11 AM via Website

Many Thanks for replay but my question is how can i get both numbers sim1 and sim2 .Using getLine1Number() method returning null value sometimes.and could you tell me how can i make a call from sim2 programtically..