Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run USSD Code in Android without using " Intent.ACTION_CALL"

I am creating a App in Android, which required run USSD Code in background. without send my application in background,

Whenever I am using Intent.ACTION_CALL to run USSD

   String encodedHash = Uri.encode("#");
   String ussd = "*123" + encodedHash;
   Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + ussd));
   startActivity(intent);

it send my application in background, and open dialer Interface on my application.

So it is possible to run USSD code without open Dialer Interface in front.

Thanks In advance .

like image 681
Krishna Roy Avatar asked Aug 25 '26 03:08

Krishna Roy


1 Answers

It's a kind of complex... You need to override the default dialer. Like the way Skype does. How to include my application as a dialing option when calling from the addressbook?

Dial Number Without Prompt

like image 127
jeet.chanchawat Avatar answered Aug 26 '26 17:08

jeet.chanchawat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!