简体   繁体   中英

is Android not supporting USSD CALL?

I'm trying to make a USSD call on my app

I tried to do this :

Intent fastCall = new Intent(Intent.ACTION_CALL);
String Num = "*100*200"+ Uri.encode("#");
fastCall.setData(Uri.parse("tel:" + Num));
startActivity(fastCall);

but I keep getting an error:

Connection problem or invalid MMI code

what can I do ? or should I just use ACTION_DIAL ?

any idea ?

No Android does not fully support USSD. Notice that there are no actual USSD APIs. Your dialer may or may not send USSD codes. Really its a technology that no longer makes sense in today's world where we have actual data connections. A given code may work depending on device, dialer, SIP installation, carrier, etc. Or it may not. In any case there's no reliable way to get any answering data.

I think using ACTION_DIAL can not work well yet. ACTION_DIAL used to lunch system dialer app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM