Android内置窗口
16lz
2021-01-23
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);
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手机开发——向SD卡上的文件追加内容
- Android TextView内容设置超链接、颜色、字体
- Android原生AlertDialog修改标题,内容,按钮颜色,字体大小等
- android把字符串内容保存到指定路径
- Android 获取Gmail邮箱地址方法
- Android中内容提供者ContentProvider实现数据库增删改查
- Android实现邮箱验证功能
- Android 之APP程序崩溃后,自动向QQ 邮箱发送邮件
- Android之短信广播接收内容