可能的重复:
如何在android中使用intent拨打电话? https://stackoverflow.com/questions/4275678/how-to-make-phone-call-using-intent-in-android
请给我通过 Android 应用程序拨打该号码的代码。
多谢
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:123456789"));
startActivity(callIntent);
Edit: 必须加上<uses-permission android:name="android.permission.CALL_PHONE" />
也在清单中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)