android 拨打电话

5年以前  |  阅读数:466 次  |  编程语言:JAVA 
try {
   Intent intent = new Intent(Intent.ACTION_CALL);
   intent.setData(Uri.parse("tel:+110"));
   startActivity(intent);
} catch (Exception e) {
   Log.e("SampleApp", "Failed to invoke call", e);
}

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8