Narender Reddy
- Forum posts: 2
Feb 8, 2016, 11:22:49 AM via Website
Feb 8, 2016 11:22:49 AM via Website
How do i get mobile number from programatically in android in dual sim mode.
Feb 8, 2016, 11:22:49 AM via Website
Feb 8, 2016 11:22:49 AM via Website
How do i get mobile number from programatically in android in dual sim mode.
Feb 8, 2016, 2:19:04 PM via Website
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
Feb 9, 2016, 5:25:11 AM via Website
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..
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.