如何使用Android Android使用特殊字符拨号?

4 android android-intent

我正在尝试下面的代码来拨打一个号码,但它总是以*111为准

  Intent callIntent = new Intent(Intent.ACTION_CALL);
  callIntent.setData(Uri.parse("tel:*111#"));
  startActivity(callIntent);
Run Code Online (Sandbox Code Playgroud)

请帮助我试图学习android ..

谢谢朋友..

moD*_*Dev 5

Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+ Uri.encode("*111#")));
startActivity(callIntent );
Run Code Online (Sandbox Code Playgroud)

快乐编码:)