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.
我想拨打一个特殊的号码,例如
*123#
这是一个网络请求并获得网络发送的结果。
这可能吗?我该怎么做?
是的,您可以这样做:
Intent calling=new Intent(Intent.ACTION_CALL); if ( phno.contains( "#" )) phno = Uri.encode(phno+"#"); calling.setData(Uri.parse("tel:"+( phno ) ) ); startActivity(calli);
笔记:
这里的phnoString包含电话号码,如 *123# 或 123456789
String