android打开拨打电话界面

三行代码:

Uri uri = Uri.parse("tel:" +num);
Intent it = new Intent(Intent.ACTION_CALL, uri);
startActivity(it);

 num是要拨打的号码。

猜你喜欢

转载自zhonglunshun.iteye.com/blog/2065994