我是靠谱客的博主 孝顺天空,这篇文章主要介绍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);

最后

以上就是孝顺天空最近收集整理的关于Android内置窗口的全部内容,更多相关Android内置窗口内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(124)

评论列表共有 0 条评论

立即
投稿
返回
顶部