Reputation: 2306
i am using dual sim phone. Now i want to run USSD code by one particular network without selecting the operator to call.
my code:
String ussdCode = "*" + "123" + Uri.encode("#");
startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussdCode)));
Response: now it was asking me to select the operator to call the ussd code. I want to run that USSD Code by that particular operator without asking.
Thank you in advance.
Upvotes: 1
Views: 1919
Reputation: 482
With Samsung devices use the below
callIntent.putExtra("simSlot", simSlot);
where simSlot is integer as 0,1
Upvotes: 1