Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 android 上开发一个余额检查器应用程序?
不幸的是,Android Jelly Bean 4.2 放弃了对 USSD 的支持。你知道有什么方法可以在 android 4.2 上支持它吗?
您可以使用它:(将 120 替换为您选择的代码)
String encodedHash = Uri.encode("#"); String ussd = "*" + "120" + encodedHash; startActivityForResult(new Intent("android.intent.action.CALL", Uri.parse("tel:" + ussd)), 1);