4

我正在尝试使用下面的代码拨打号码,但它总是拨打 *111

  Intent callIntent = new Intent(Intent.ACTION_CALL);
  callIntent.setData(Uri.parse("tel:*111#"));
  startActivity(callIntent);

请帮助我正在尝试学习android..

谢谢朋友..

4

1 回答 1

5
Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+ Uri.encode("*111#")));
startActivity(callIntent );

快乐编码:)

于 2013-01-10T15:14:42.357 回答