dual-sim

how to make submissions sms with SIM2 or dual SIM

霸气de小男生 提交于 2019-12-20 03:37:09
问题 I created sms application android I've been able to sms application smoothly but send by SIM 1 if i send with 2 SIM application it will error and there were no reports sent how if i want to do sms sending with 2 SIM smoothly please help what should I add the source code of its my code public class MainActivity extends Activity { Button sendBtn; EditText txtphoneNo; EditText txtMessage; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

How to find out which SIM is making the outgoing call (Dual SIM)

怎甘沉沦 提交于 2019-12-18 13:28:08
问题 I would like to check which SIM is making an outgoing call for DUAL SIM android phones. Read this article Android : Check whether the phone is dual SIM. Works like a charm, detects the sim state and if phone is dual SIM. Next step is to get SIM info during an outgoing call request so that i know which SIM is making the call and according to that take some action. Can someone help me with that? 回答1: I've tested and for Jelly Bean I was able to successfully identify the dialling SIM card.

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

北城余情 提交于 2019-12-12 09:11:23
问题 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? 回答1: Update news : I find one solution boolean s

Android Dual SIM LAC:CID:CSQ:Operator IMEI 2 reporting

老子叫甜甜 提交于 2019-12-11 13:38:32
问题 My testing phone is Samsung A3 with Android 5.0.2. When SIM2 is inserted and slot 1 is empty getNetworkOperator() onSignalStrengthChanged() onCellLocationChanged() reports LAC, CID, CSQ & operator for SIM2. When SIM1 is inserted, all data is for SIM1. Data for SIM2 is not reported. What must I do to get LAC:CID:CSQ:OPER for both SIMs paralelly? EDIT Answer about LAC:CID:CSQ is in: Android signal strength But how to get network operators for both SIMs? === SUMMARY EDIT WITH COMPLETE ANSWER ===

Android signal strength

拟墨画扇 提交于 2019-12-09 23:41:23
问题 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

How to get a PhoneStateListener when using Dual SIM functionality

故事扮演 提交于 2019-12-09 18:45:51
问题 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

Call logs for dual sim android device

折月煮酒 提交于 2019-12-09 01:31:27
问题 I am using the below code to get the call log details which is working very fine for single SIM device, but the problem arises when it comes to the DUAL sim. I am trying to find work around for getting logs from dual sim device. /** * Get All Call Logs details as JSON * * @param context */ @SuppressLint("SimpleDateFormat") private void getInitialCallDetailsAsJSON() { // Print dates of the current week starting on Monday DateFormat df = new SimpleDateFormat("dd-MMM-yyyy hh:mm aa", Locale

Android: How to send sms with particular SIM in dual sim mobiles?

大憨熊 提交于 2019-12-08 14:07:01
问题 I found some code to do this, but It's giving me an exception ( Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference). I am testing with my Moto G 3rd Gen. Below is the code, Please let me know if I am missing anything or any other approach are available. Thank you. import android.app.PendingIntent; import android.content.Context; import android.os.IBinder; import android.util.Log; import java.lang.reflect.InvocationTargetException; import

Call logging with Dual SIM

吃可爱长大的小学妹 提交于 2019-12-08 13:44:44
问题 I'm developing an application for Android 2.3.4. This app gets all calls in call log and sends them to a server. The app works very well but now I have a problem. I have to add the Dual SIM option. I've looked around and it seems that Android mixes the call log register of the both SIMs. Well, since I have to get only log of 1 SIM, how can I do that? Can Android do something like that (determining on call log which SIM got called) or do I have to change Android version? 回答1: Any application

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

我是研究僧i 提交于 2019-12-07 10:26: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. 回答1: 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