- 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);
- }
- //该片段来自于http://www.codesnippet.cn/detail/310120132010.html
来源: http://www.codesnippet.cn/detail/310120132010.html