简体   繁体   English

Android不支持USSD CALL吗?

[英]is Android not supporting USSD CALL?

I'm trying to make a USSD call on my app 我正在尝试在我的应用上拨打USSD电话

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 ? 还是我应该只使用ACTION_DIAL

any idea ? 任何想法 ?

No Android does not fully support USSD. 没有Android不能完全支持USSD。 Notice that there are no actual USSD APIs. 请注意,没有实际的USSD API。 Your dialer may or may not send USSD codes. 您的拨号程序可能会或可能不会发送USSD代码。 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. 给定的代码可能有效,具体取决于设备,拨号程序,SIP安装,运营商等。 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不能很好地工作。 ACTION_DIAL used to lunch system dialer app. ACTION_DIAL用于午餐系统拨号器应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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