I'm new to Android and programming so I have been working on an app that can send USSD requests and sending calls and messages so far everything is working just fine. But the main issue is when I deployed it to a dual SIM phone it just reads the first one and completely ignores the second one . How can I send requests from both SIM cards and know which sim is in number and which sim is in two ? Thanks in advance.
Asked
Active
Viewed 209 times
1 Answers
1
if your API level is >22 ie marshmallow or higher, you can check for multiple SIMs using SubscriptionManager's method getActiveSubscriptionInfoList(). getDefaultDataSubscriptionId() would tell you what sim is active. More details on Android Docs.

Karan Harsh Wardhan
- 1,096
- 9
- 22