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:[email protected]"));
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内置窗口
猜你喜欢
转载自mickey-hou.iteye.com/blog/1684178
今日推荐
周排行