Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
0 answers
62 views

Undocumented SIM States in TelephonyManager

I'm working on an application where I want to read the SIM State, and I've been following along with Google's documentation on getSimState. Some of my users are returning values that are not ...
Connor Jackson's user avatar
1 vote
1 answer
622 views

Telephonymanager getAllCellsInfo returns wrong registered cells count

I have two active sim cards on the phone. But getAllCellsInfo returns only one registered cell. How this can happen? And what should I do to fix it? SubscriptionManager.geAllSubscriptionsInfoList() ...
Vladimir Fisher's user avatar
1 vote
0 answers
2k views

Is it possible to retrieve the phone numbers of both the dual sim cards in Android programmatically.

I did refer to one of the answers suggested before and edited it because the sim index is not checked in that answer. Here's what I used. SubscriptionManager subscriptionManager = SubscriptionManager....
AntiNational's user avatar
1 vote
0 answers
916 views

got UICC carrier priviliges but failed to open channel in android 5.1

I am trying to develop some functions with newly added UICC features in TelephonyManager in android 5.1, using these configuration in my UICC and got UICC carrier privileges already. ( refer to ...
Eric Chen's user avatar
1 vote
1 answer
3k views

If `SIM` state is `NETWORK_LOCKED`, How can I unlock it programmatically in Android?

I have a tool, using that I can able to network lock and then can do unlock manually, but I need to do unlock programmatically, How ? Below is just for Information more understanding : https://...
kodali's user avatar
  • 317
7 votes
2 answers
8k views

Sign App with UICC Carrier Privileges Certificates

I was reading information on this link in regards to signing an application with carrier privileges. I am aware of how to sign an application using a keystore for production releases, but how do I ...
CompEng88's user avatar
  • 1,512
2 votes
0 answers
230 views

how to use sendEnvelopeWithStatus method (android api 21)

I am novice on android development, actually i am developing an application who communicate with SIM card. I looked to the API updates added recently on Android 5.1.1, and I found the method ...
DGz's user avatar
  • 109
0 votes
1 answer
514 views

I have one issue with sim change receiver?

I have written one receiver when sim state is changed it is working fine ,and my device is dual sim card it is working for single sim,but it is not executing for 2nd sim,and when 1st sim is on ready ...
Hanuman's user avatar
  • 958
1 vote
1 answer
861 views

Read phone number from Android Device in Eclipse

I wanted to read the phone number of the sim card that is inserted into the android phone in Eclipse for my project. I have tried the Telephone Manager Class but since it reads the device phone number,...
Jarvis's user avatar
  • 503
0 votes
1 answer
2k views

Failed to get Sim Card details (Sim Serial Number) for sim2 in Samsung Dual Android phone

I'm trying to get sim card details for sim 1 and sim 2 in a Samsung dual phone (Samsung Gt-S6802) , I am able to get details for sim 1 but for sim 2 I get a null value. I'm using Java reflection ...
Rayyidh's user avatar
  • 21
0 votes
1 answer
384 views

Android - Getting SImcard Number ? Will it work for all the Network Providers?

I am planning to get the Simcard number inserted in the android devices. So for that , i am trying this coding snippet, TelephonyManager tm = (TelephonyManager)this.getApplicationContext()....
user2462298's user avatar
0 votes
1 answer
1k views

Network type unknown on Android Nexus 7 tablet

I made a simple application that shows the network type currently on the device. I have Nexus 7 inch tablet and the value shown is Unknown. I know that Nexus 7 is not a GSM device i.e it doesn't need ...
Vlad's user avatar
  • 2,773
49 votes
5 answers
128k views

How to get current SIM card number in Android?

I want to know user mobile number in Android. I used this code but I'm not getting number. TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); String n = tm....
User's user avatar
  • 1,271
1 vote
0 answers
2k views

Not getting sim informations

In my application I am checking Sim is present or not by using simState == TelephonyManager.SIM_STATE_ABSENT . If Sim is present I am collecting all Sim information like Sim operator name, Sim country ...
thej's user avatar
  • 648
3 votes
1 answer
1k views

Programmatically check if PIN lock is active in Android

Here's the thing - I'm doing a security app that needs to be able to check if the PIN code is set or not. The official API returns the same value regardless of the PIN state, and I've been ...
M. Bak's user avatar
  • 31
12 votes
4 answers
21k views

to get phone number programmatically in Android

I am using the code TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(); to get the phone no programatically in ...
Prabhu M's user avatar
  • 3,574