Android拨打电话

1.只调用拨号界面,不拨出电话

Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:"+phone));
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		startActivity(intent);

2、跳过拨号界面,直接拨打电话

Intent intent=new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+phone));
		startActivity(intent);

3 加上权限

猜你喜欢

转载自blog.csdn.net/dubo_csdn/article/details/90546702