当我想在拨号意图中添加符号 # 时。它在物理应用程序中不起作用。如何将符号 # 添加到我的应用程序的拨号呼叫中
试试这个:
String hash = Uri.encode("#");
然后把它放在你的调用字符串中:
例子:
String ussdCode = "*100*2" + hash;
startActivity(new Intent("android.intent.action.CALL", Uri.parse("tel: " + ussdCode)));
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句