1.打开设置主界面

Intent intent = new Intent(android.provider.Settings.ACTION_SETTINGS); //系统设置startActivityForResult( intent , 0);
2.打开网络设置界面(其他设置中的界面同理)
Intent intent = new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS);//WIFI设置startActivity(intent);Intent intent = new Intent(android.provider.Settings.ACTION_APPLICATION_SETTINGS);//管理应用程序界面context.startActivity(intent);
或者用以下方法(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);
3.打开壁纸设置
Intent intent = new Intent(Intent.ACTION_SET_WALLPAPER);startActivity(intent);
4.打开拨号界面
Intent intent = new Intent(Intent.ACTION_DIAL);startActivity(intent);
5.打开联系人界面
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setType("vnd.android.cursor.dir/contact");startActivity(intent);
6.打开通话记录
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setType("vnd.android.cursor.dir/calls");startActivity(intent);
7.打开短信列表界面
Intent intent = new Intent(Intent.ACTION_MAIN);intent.addCategory(Intent.CATEGORY_DEFAULT);intent.setType("vnd.android-dir/mms-sms");startActivity(intent);

原文地址:http://www.2cto.com/kf/201303/197404.html

更多相关文章

  1. Android中button的onClick事件几种方法
  2. Android 关闭多个Activity的实现方法
  3. Android中几种延后处理事件的方法
  4. Android判断包名和类名是否存在的方法
  5. Android SDK 1.5 "--core-library" build error问题解决方法
  6. android http通信(二) 英译汉字典实例探究网络通信三种方法
  7. android sdk content loader 加载很慢的解决方法
  8. Android 得到连接热点的ip的方法
  9. Android GoogleMap的放大缩小地图控件的使用方法

随机推荐

  1. android 设置透明效果
  2. 比较好的Android社区
  3. Android(安卓)TextView 设置行间距字间距
  4. android中颜色参考
  5. Android布局属性讲解标签属性
  6. Android(安卓)Animation无限循环动画
  7. Android(安卓)漂浮的Activity
  8. Android中有关布局的几个问题
  9. android 更新列表
  10. TextView滚动效果