拨打USSD code? [英] Dial USSD code?

查看:402
本文介绍了拨打USSD code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从它的工作原理手机拨打一个直接。例如:* 123#得到一些平衡

When I dial a directly from the handset it works. For example: *123# gets balance of number.

然而,当我试图从应用程序中做同样的事情,我得到的一个问题。在拨号程序中显示的数字是缺少结束#。 我需要在我的应用程序,我想我的应用程序应该支持所有的USSD codeS。

However, when I try to do the same thing from within an application I get a problem. The number displayed in the dialer is missing the ending #. I need it in my application i want my app should support all the USSD codes.

有没有什么办法可以拨打USSD codeS与应用程序?

Is there any way to dial ussd codes with in the application?

推荐答案

我不能完全肯定,但我认为,USSD尚不支持在Android上,但你可以尝试以下解决方法:

I'm not completely sure but I think USSD is not yet supported on android, however you can try this workaround:

String encodedHash = Uri.encode("#");
String ussd = "*" + encodedHash + "123" + encodedHash;
startActivityForResult(new Intent("android.intent.action.CALL",
Uri.parse("tel:" + ussd)), 1);

这篇关于拨打USSD code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆