一.拨打电话的启动:
1.创建intent对象
Intent intent = new Intent();
2.设置intent的意图
intent.setAction(Intent.ACTION_CALL);
3.设置打电话的数据:
intent.setData(Uri.parse(“tel”+telephone));
4.启动intent
startIntent(intent);
5.设置相关的权限:
<uses-permission android:name = "android.permission.CALL_PHONE"/>
二:浏览器的启动:
1.创建Intent
Intent intent = new Intent();
2.设置intent的意图
intent.setAction(Intent.ACTION_VIEW);
3.设置浏览器的数据
intent.setData(Uri.parse("www.baidu.com"));
4.启动intent
startIntent(intent);