打开设置主界面

Intent intent = new Intent(Android.provider.Settings.ACTION_SETTINGS); //系统设置

startActivityForResult( intent , 0);

打开网络设置界面(其他设置中的界面同理)

Intent intent = new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS);//WIFI设置

startActivity(intent);

new Intent(android.provider.Settings.ACTION_APPLICATION_SETTINGS);//管理应用程序界面

new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS);//打开蓝牙设置

或者用以下方法(3.0以前的版本可以用此方法)

Intent intent = new Intent("/");

ComponentName cm = new ComponentName("com.android.settings","com.android.settings.WirelessSettings");

intent.setComponent(cm);

intent.setAction("android.intent.action.VIEW");

startActivityForResult( intent , 0);

打开壁纸设置

Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);

startActivity(intent);

打开拨号界面

Intent intent = new Intent(Intent.ACTION_DIAL);

startActivity(intent);

打开联系人界面

Intent intent = new Intent(Intent.ACTION_VIEW);

intent.setType("vnd.android.cursor.dir/contact");

startActivity(intent);

打开通话记录

Intent intent = new Intent(Intent.ACTION_VIEW);

intent.setType("vnd.android.cursor.dir/calls");

startActivity(intent);

打开短信列表界面

Intent intent = new Intent(Intent.ACTION_MAIN);

intent.addCategory(Intent.CATEGORY_DEFAULT);

intent.setType("vnd.android-dir/mms-sms");

startActivity(intent);

打开相册和视频

Intent intent = new Intent(Intent.ACTION_VIEW);

intent.setType("vnd.android.cursor.dir/image");//图片列表

intent.setType("vnd.android.cursor.dir/video");//视频列表

startActivity(intent);

打开mp3播放器

Intent intent = new Intent("android.intent.action.MUSIC_PLAYER");

startActivity(intent);

打开照相机

Intent intent = new Intent("android.media.action.STILL_IMAGE_CAMERA");

startActivity(intent);

打开录音

选择一张照片或一个mp3文件或一个mp4文件

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//图片

intent.setType("image/*");

startActivityForResult(Intent.createChooser(intent, "Select Picture"),1);

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//音频

intent.setType("audio/*");

startActivityForResult(Intent.createChooser(intent, "Select music"),1);

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//视频

intent.setType("video/*");

startActivityForResult(Intent.createChooser(intent, "Select movie"),1);

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);//录音

intent.setClassName("com.android.soundrecorder", "com.android.soundrecorder.SoundRecorder");

intent.setType("audio/*");

startActivityForResult(Intent.createChooser(intent, "Select movie"),1);

android的intent打开系统程序的更多相关文章

  1. 通过Intent 打开系统级应用

    众所周知,各个手机厂商由于对Android 原生系统定制的原因,会造成系统级应用packname 和activityname 不同的现象,就拿时钟软件来说,魅族2的activityname 是[com ...

  2. msys 中打开系统程序

    按照msys 后发现sh自带的vim不好用,下载安装了个gvim,在etc/profile中作如下设置: alias gvim="D:/Program\ Files/Vim/vim73/gv ...

  3. android 程序打开第三方程序

    因为在开发过程中需要开启扫描第三方程序,并且点击启动的效果,所以对这个功能进行了实现,并且分享出来个大家. 之前看到网上说需要获取包名和类名,然后通过  intent 才能打开这个程序,其实不必要这样 ...

  4. Android 打开系统相册和系统视

    1.打开系统相册 Intent intent = new Intent(Intent.ACTION_VIEW); intent.setType("vnd.android.cursor.dir ...

  5. Android第一次打开应用程序,实现向导界面

    转载请注明出处,谢谢http://blog.csdn.net/harryweasley/article/details/42079167 先说下思路:1.利用Preference存储数据,来记录是否是 ...

  6. Android 监听 Android中监听系统网络连接打开或者关闭的实现代码

    本篇文章对Android中监听系统网络连接打开或者关闭的实现用实例进行了介绍.需要的朋友参考下 很简单,所以直接看代码 复制代码 代码如下: package xxx; import android.c ...

  7. 安卓 通过intent调用系统文件管理器打开指定路径目录

    安卓 通过intent调用系统文件管理器打开指定路径目录     转  https://blog.csdn.net/qq_34161388/article/details/78586247 当我们知道 ...

  8. Android -- 分享功能和打开指定程序

    打开指定程序                                                                                Intent intent ...

  9. android 推断应用程序是系统程序还是用户程序

    直接上代码: AppInfo.java <span style="font-size:18px;">package com.example.packages; publ ...

随机推荐

  1. js 实现关键词球状旋转效果

    效果图 html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww ...

  2. java编程思想-注解思维导图

  3. My.Ioc 代码示例——实现自动注册/解析

    在很多 Ioc 容器中,当使用者向容器请求实现了某个契约类型 (Contract Type) 的服务时 (调用类似如下方法 container.Resolve(Type contractType)), ...

  4. UIView -> image & 本地时间获取

    //UIView 转换为图片 UIGraphicsBeginImageContext(self.rootsView.bounds.size); [_rootsView.layer renderInCo ...

  5. /root/.bashrc与/etc/profile的异同

    要搞清bashrc与profile的区别,首先要弄明白什么是交互式shell和非交互式shell,什么是loginshell 和non-loginshell. 交互式模式就是shell等待你的输入,并 ...

  6. .net中XML的创建01(传统方法)

    XML传统的创建: 传统的创建主要是依据XmlDocument的对象展开的,通过XmlDocument对象可以创建元素(XmlElement).属性(XmlAttribute)以及文本节点(Creat ...

  7. JFrome 登陆/注册/回显无数据库连接小程序

    当离开RCP插件区重新回顾一下JFrame窗口程序的标签.页面间的跳转. 完成一个登陆.注册界面.(界面完成后练习输入输出流,将前台的注册信息保存到一个文件夹下的.txt文件中) 首先向通过JFram ...

  8. 【COGS495】窗口

    [问题描述] 给你一个长度为N的数组,一个长为K的滑动的窗体从最左移至最右端,你只能见到窗口的K个数,每次窗体向右移动一位,如下表: Window position Min value Max val ...

  9. input border IE6 bug

    border:none;与border:0;的区别体现有两点:一是理论上的性能差异二是浏览器兼容性的差异. 1.性能差异[border:0;]把border设为“0”像素虽然在页面上看不见,但按bor ...

  10. underscorejs-indexBy学习

    2.19 indexBy 2.19.1 语法 _.indexBy(list, iteratee, [context]) 2.19.2 说明 给定一个list,和 一个用来返回一个在列表中的每个元素键 ...