Calling a USSD number without opening the phone ap

2019-05-29 03:12发布

I am trying to call a USSD number from my application like this:

Uri u = Uri.fromParts("tel", "*110#", "");
Intent i = new Intent(Intent.ACTION_CALL, u);
startActivity(i);

This makes the phone app launch and call the number.

What I want is to call the USSD number without opening the phone app or atlease open it up in the background.

If the user is doing something, then he should not be disturbed. Only a notification must be generated.

any suggestions?

标签: android ussd
1条回答
2楼-- · 2019-05-29 03:41

Fortunately, this is not possible, except perhaps by your own custom firmware. If it were possible, malware would exploit it to place phone calls without the user's knowledge.

查看更多
登录 后发表回答