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);
ノート:
ここでphnoはString*123# や 123456789 のような電話番号を含むものです
String