dual-sim

Get IMSI Number of Android Dual SIM device

孤街浪徒 提交于 2019-12-07 00:31:37
I am currently using the android API public static String get_IMSI_Number(Context context) { TelephonyManager tel = (TelephonyManager) context .getSystemService(Context.TELEPHONY_SERVICE); return tel.getSubscriberId(); } to get the IMSI number. But unfortunately it is not getting the IMSI number if the device is dual SIM and It is returning "null" always. I want to get the IMSI number of the Device( For Dual SIM ) case 1: Need to read the IMSI numbers if the device inserted with two SIMS in it's two slots case 2 : Need to read the IMSI number if the device inserted with one SIM in it's first

Get the SIM number used on a call through the call log of Android

半腔热情 提交于 2019-12-06 15:32:46
I know Android SDK is big mess for dual SIM support, but stock dialer shows this information on call log which SIM card ( 1 or 2) was used in a call. I guess it´s stored on call log default database and just want to know if it is possible to retrieve it as simple as possible. I don´t need to know if the SIM is the current one in use. By the way, probably the call log became3s a big mess if you change the Sim cards... but it is another subject and does not matter for me (at the moment ;-) My questions: 1- Is it possible to get it ? 2- Is it a simple query on the file/database? I found an app

Android : How to get SIM ID of both SIM in Dual SIM mobile

怎甘沉沦 提交于 2019-12-05 14:00:37
I want to get the SIM serial no/ID of both SIM in dual SIM mobile.Is there a way to get them?Thanks in advance. import java.lang.reflect.Method; import android.content.Context; import android.telephony.TelephonyManager; public final class TelephonyInfo { private static TelephonyInfo telephonyInfo; private String imeiSIM1; private String imeiSIM2; private boolean isSIM1Ready; private boolean isSIM2Ready; public String getImeiSIM1() { return imeiSIM1; } /*public static void setImeiSIM1(String imeiSIM1) { TelephonyInfo.imeiSIM1 = imeiSIM1; }*/ public String getImeiSIM2() { return imeiSIM2; } /

Android signal strength

做~自己de王妃 提交于 2019-12-04 18:11:06
Is there any method to get signal strength on both sim cards. I search a lot but I couldn't find any solution. Maybe is there any method to register receiver on second sim card ? I'm working on Android 5.0 and I know that on this version Android officially does not support dual sim solutions. I found only this which nearly fits to me: Check whether the phone is dual SIM Android dual SIM signal strength Second link presents some way but I cannot use it because method TelephonyManager.listenGemini is not available Any help ? Please note : the following is specific to some Android 5.0 devices. It

Samsung android 6.0 how to get dual sim call logs with sim slot id?

蓝咒 提交于 2019-12-04 17:24:51
Samsung(dual sim) before offical android 6.0(not cm) device, I could get call logs with sim slot id, but Samsung(dual sim) android 6.0+ device I get an issue: String slotId = cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ID)); <i>slotId</i> = null; but in another device (Huawei mate 8) is work fine Did samsung modify the com.android.providers.contacts and contacts2.db? Can someone guide through the solution for this? Update news : I find one solution boolean s_bSamsung; if (Build.VERSION_CODES.M <= Build.VERSION.SDK_INT && s_bSamsung){ uri = Uri.parse("content://logs/call"

How to get a PhoneStateListener when using Dual SIM functionality

心已入冬 提交于 2019-12-04 15:01:12
so I am currently implementing a call forwarding feature in Android, for dual SIM devices. In order to read the current state of the call forwarding (enabled/disabled) for a SIM card, I do the following: I create a TelephonyManager object: val telephonyManager = getSystemService(TELEPHONY_SERVICE) as TelephonyManager I create a PhoneStateListener object and override the onCallForwardingIndicatorChanged method: val myPhoneStateListener = object: PhoneStateListener() { override fun onCallForwardingIndicatorChanged(isCallForwardingEnabled: Boolean) { if(isCallForwardingEnabled) println("Call

Android Dual Sim Emulator

夙愿已清 提交于 2019-12-03 23:33:30
How can I emulate an Android device with Dual sim support? It's important that the Android level is 5.1 or higher. This emulator is intended to send/receive SMS May this is help you: Buddy in Document it is said that Emulators are supported with simulated SimCard.. "A GSM modem, including a simulated SIM Card" More Information And There are some patches available which allows sim card support in emulator using standard USB PCSC reader... Here are some links which may guide you through.. http://simhacks.github.io/android-emulator/ http://blog.codepainters.com/2010/11/20/android-emulator-patch

Android USSD which sim receive a ussd message or which sim slot receives a ussd message (dual sim phone)

风格不统一 提交于 2019-12-03 22:41:00
I am able to capture the incoming ussd message, but how to compare the incoming ussd message in case of dual sim phone? If I receive a ussd message alert how can I know that the incoming ussd message is for which sim? Started with Wikipedia for staring info, not much. Found out there was / is a security (pdf warning) problem with it. Then jackpot: specks (pdf warning). As I scimmed it, I don't think you will find the info you want in the USSD message itself. It is probably somewhere in the handshake before that. But did not find it. tldr: it's not in the USSD message itself. 来源: https:/

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

Send sms using sim selection option

蓝咒 提交于 2019-12-01 13:56:52
I have tried Android SDK above 5.1 OS. I want to send sms using SIM selection option. I tried this Program. It's taking sim1 only. It does not take second sim. My Program public class MainActivity extends AppCompatActivity { Context mContext = MainActivity.this ; String SENT = "SMS_SENT"; String DELIVERED = "SMS_DELIVERED"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sendSMS("XXXXXXXX77","Sent by Dual Sim Support Testing"); } public void sendSMS(final String paramString1,final String paramString2) {