Register Calls Using Dual SIM

I am developing an application for Android 2.3.4.

This application receives all calls in the call log and sends them to the server. The application works very well, but now I have a problem. I have to add the Dual SIM option.

I looked around and it seems that Android is mixing the call log register of both SIM cards. Well, since I should only get a log from 1 SIM card, how can I do this? Can Android do something like this (call log definition caused by SIM card), or do I need to change the version of Android?

0
source share
3 answers

Any application created on Android will guarantee only for mobile phones with one SIM card. Since Android does not support multiple SIM cards, at least from the SDK. Manufacturers of devices that have created devices with multiple SIM cards do it themselves. We invite you to contact the manufacturer of your device and see if they have an SDK add-on or something that allows you to access a second SIM card.

+2
source

It is possible to find information about dual sim in the android API 22 and above using the SubscriptionManager , it provides a SubscriptionInfo list for a user that contains information about several sims

SubscriptionManager subscriptionManager = SubscriptionManager.from(getApplicationContext()); List<SubscriptionInfo> mSimInfo = subscriptionManager.getActiveSubscriptionInfoList(); 
+1
source

there is a new application that does the same

Find 2SIMCallLogger on Google Play / Market

https://play.google.com/store/apps/details?id=com.mashibo&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5tYXNoaWJvIl0 .

-one
source

Source: https://habr.com/ru/post/1393063/


All Articles