Android内置窗口

1:联系人显示
Intent intent = new Intent("com.android.contacts.action.LIST_CONTACTS");
startActivity(intent);

2:拨打电话
Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:13222222222"));
startActivity(intent);

3:调用拨号程序
Intent intent = new Intent("com.android.phone.action.TOUCH_DIALER");
startActivity(intent);

4:调用内置Web浏览器
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.baidu.com"));
startActivity(intent);

5:调用email传递程序
Intent intent = new Intent(Intent.ACTION_SENDTO,Uri.parse("mailto:xx@163.com"));
startActivity(intent);

6:email各种方式输入处理
Intent intent = new Intent(Intent.ACTION_SEND);
//需要传递信息 通过putExtra方法指定
//指定发送目标邮箱
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{"xx.163.com"});
//指定抄送目标邮箱
intent.putExtra(Intent.EXTRA_CC, new String[]{"yy.163.com","zz.163.com"});
//指定发送目标邮箱标题
intent.putExtra(Intent.EXTRA_SUBJECT, "邮件标题");
//指定发送目标邮箱内容
intent.putExtra(Intent.EXTRA_TEXT, "邮件内容信息");
//设置内容格式为纯文本
intent.setType("text/plain");
startActivity(intent);

7:显示系统设置信息
Intent intent = new Intent("android.setting.SETTINGS");
startActivity(intent);

8:WIFI设置
Intent intent = new Intent("android.setting.WIFI_SETTINGS");
startActivity(intent);

9:启动音频处理
Intent intent = new Intent("android.setting.WIFI_SETTINGS");
intent.setType("audio/*");
startActivity(intent);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值