kartheeki j
kartheeki j

Reputation: 2306

How to run USSD code in android

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

Answers (1)

Hussein mahyoub
Hussein mahyoub

Reputation: 482

With Samsung devices use the below

callIntent.putExtra("simSlot", simSlot);

where simSlot is integer as 0,1

Upvotes: 1

Related Questions