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 ussdCode = "*" + "123" + Uri.encode("#");
startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussdCode)));
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.