sim-card

Detect target phone number on incoming call is it for SIM 1 or for SIM 2?

一曲冷凌霜 提交于 2019-12-03 09:57:34
问题 I have an Android phone with 2 SIM card and I want to detect the target of the incoming call — is it for SIM 1 or for SIM 2. Is it possible to get the target number from call info? 回答1: Finally I got the solution using this code. Hope it should helpful for everyone who wants to handle Dual SIM phones. Its working fine for me. Please add below codes in your BroadcastReceiver class: public class IncomingCallInterceptor extends BroadcastReceiver { @Override public void onReceive(Context context,

Javacard applet RPDU does not contain any data when accessed from seek-for-android

亡梦爱人 提交于 2019-12-03 09:13:19
I have a complex Javacard applet, which is developed and tested for ordinary Smart Card (e. g. NXP J3E145, T=1). Now I have to use it in UICC in a mobile phone and access it from my Android app. The UICC uses T=0 protocol. When I communicate to the SIM card from an ordinary card reader (Omnikey 5321), the applet works fine. However, when I move it into my mobile phone (Sony Xperia S) and send APDUs via seek-for-android API, some RPDUs do not contain any data part, there is only the status word 0x9000 and the data part is missing! These APDUs are failing: 80 04 00 00 00 --> 90 00 (although

How to interact with USSD dialog programmatically in android

£可爱£侵袭症+ 提交于 2019-12-03 09:12:58
I want to use USSD dialog which comes after dialing any USSD code say *123# which asks user to enter option number to perform specific task(s) depending upon sim card vendors. I need to interact with that dialog to provide input in the text box given into it programmatically. However, I am able to read the USSD response that comes in Alert Dialog after dialing any USSD code, using AccessibilityService and I'm showing the response in a Toast as shown in the code below. I haven't found any solution to interact with USSD dialog yet. public class UssdService extends AccessibilityService{ public

Read/write certificates on a SIM card - iOS

一世执手 提交于 2019-12-02 12:24:18
问题 I'm doing some research on the way to use a certificate from a SIM Card (in order to keep the service provided, if the user wants to change his phone). In Android, it seems OK, but I can't find anything in the iOS platform: is it possible to read X.509 certificates from the SIM card through an iPhone device? 回答1: No. Your best bet is to use either the Keychain or iCloud to persist data between devices. 来源: https://stackoverflow.com/questions/12705603/read-write-certificates-on-a-sim-card-ios

Is it possible to get iphone's phone number programmatically in 2011? [duplicate]

﹥>﹥吖頭↗ 提交于 2019-12-02 10:31:45
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Programmatically get own phone number in iPhone OS Is it still impossible to get user's phonenumber in iOS and have your app accepted to appStore like they say in this thread: Programmatically get own phone number in iOS ? I hope that something's changed since then. What are the good alternatives? 回答1: No is not possible to get phone number by code. but you can always ask the user their phone number using a

Check SIM PIN with SDK Android

旧时模样 提交于 2019-12-02 04:17:40
问题 My app needs to check the pin inserted by a user with the SIM card pin and that Android has to answer me if the pin inserted is correct. I only need to check, never change the code pin. It is possible? 回答1: Not sure if it can be done, but: I would not rely on a SIM card being present - think of tablets with WiFi only. Also as a user I would not trust any application that would ask for the pin of my SIM card. 来源: https://stackoverflow.com/questions/9128627/check-sim-pin-with-sdk-android

Read/write certificates on a SIM card - iOS

痴心易碎 提交于 2019-12-02 04:14:49
I'm doing some research on the way to use a certificate from a SIM Card (in order to keep the service provided, if the user wants to change his phone). In Android, it seems OK, but I can't find anything in the iOS platform: is it possible to read X.509 certificates from the SIM card through an iPhone device? No. Your best bet is to use either the Keychain or iCloud to persist data between devices. 来源: https://stackoverflow.com/questions/12705603/read-write-certificates-on-a-sim-card-ios

dual sim android sdk

时间秒杀一切 提交于 2019-12-01 19:16:42
Is there any way in sdk(default) that can handle dual sims? There are many number of android phones available in market which are dual sim. What i want is programmatically change the default sim. Is it possible? As of Android 5.1 Multiple-Sim Support has been officially added to the Android SDK! You can access information about the current used sim through the SubscriptionManager class. 来源: https://stackoverflow.com/questions/10382971/dual-sim-android-sdk

Fetch Local phonebook contacts From SIM card only android

偶尔善良 提交于 2019-12-01 01:32:51
I want to know if its possible to fetch contacts which exist in SIM card or phonebook only. Right now I am using the following code to fetch contacts and it fetches all the contacts even my gmail and Facebook Contacts. Cursor cursor = getContentResolver().query( ContactsContract.Contacts.CONTENT_URI, null, null, null, Phone.DISPLAY_NAME + " ASC"); if (cursor.getCount() > 0) { while (cursor.moveToNext()) { PhoneBookUserEntity user = new PhoneBookUserEntity(); // Pick out the ID, and the Display name of the // contact from the current row of the cursor user.setId(cursor.getString(cursor

Fetch Local phonebook contacts From SIM card only android

故事扮演 提交于 2019-11-30 20:37:45
问题 I want to know if its possible to fetch contacts which exist in SIM card or phonebook only. Right now I am using the following code to fetch contacts and it fetches all the contacts even my gmail and Facebook Contacts. Cursor cursor = getContentResolver().query( ContactsContract.Contacts.CONTENT_URI, null, null, null, Phone.DISPLAY_NAME + " ASC"); if (cursor.getCount() > 0) { while (cursor.moveToNext()) { PhoneBookUserEntity user = new PhoneBookUserEntity(); // Pick out the ID, and the