Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3435496
  • 博文数量: 864
  • 博客积分: 14125
  • 博客等级: 上将
  • 技术积分: 10634
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-27 16:53
个人简介

https://github.com/zytc2009/BigTeam_learning

文章分类

全部博文(864)

文章存档

2023年(1)

2021年(1)

2019年(3)

2018年(1)

2017年(10)

2015年(3)

2014年(8)

2013年(3)

2012年(69)

2011年(103)

2010年(357)

2009年(283)

2008年(22)

分类: 嵌入式

2012-06-24 20:14:56

 在android SDK文档中有这样一个类,android.provider.Settings类提供android系统各个页面的跳转常量:
Constants
Activity Action: Show settings for accessibility modules.
Activity Action: Show add account screen for creating a new account.
Activity Action: Show settings to allow entering/exiting airplane mode.
Activity Action: Show settings to allow configuration of APNs.
Activity Action: Show screen of details about a particular application.
Activity Action: Show settings to allow configuration of application development-related settings.
Activity Action: Show settings to allow configuration of application-related settings.
Activity Action: Show settings to allow configuration of Bluetooth.
Activity Action: Show settings for selection of 2G/3G.
Activity Action: Show settings to allow configuration of date and time.
Activity Action: Show general device information settings (serial number, software version, phone number, etc.).
Activity Action: Show settings to allow configuration of display.
Activity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.
Activity Action: Show settings to enable/disable input method subtypes.
Activity Action: Show settings for internal storage.
Activity Action: Show settings to allow configuration of locale.
Activity Action: Show settings to allow configuration of current location sources.
Activity Action: Show settings to manage all applications.
Activity Action: Show settings to manage installed applications.
Activity Action: Show settings for memory card storage.
Activity Action: Show settings for selecting the network operator.
Activity Action: Show settings to allow configuration of privacy options.
Activity Action: Show settings to allow configuration of quick launch shortcuts.
Activity Action: Show settings for global search.
Activity Action: Show settings to allow configuration of security and location privacy.
Activity Action: Show system settings.
Activity Action: Show settings to allow configuration of sound and volume.
Activity Action: Show settings to allow configuration of sync settings.
Activity Action: Show settings to manage the user input dictionary.
Activity Action: Show settings to allow configuration of a static IP address for Wi-Fi.
Activity Action: Show settings to allow configuration of Wi-Fi.
Activity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.
 
Activity Extra: Limit available options in launched activity based on the given authority.

 

跳转到系统设置网络的界面(这个可能是使用的最多的)


startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));

在这个界面里用户就可以设置wifi和2g/3g网络了

如果要launch Mobile Networks Setting页面按如下方法:

  Intent intent=new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
  ComponentName cName = new ComponentName("com.android.phone","com.android.phone.Settings");
  intent.setComponent(cName);
  startActivity(intent);

 

  如果要进入Networks Operators页面按如下方法:

  Intent intent = new Intent(Intent.ACTION_MAIN);
  intent.setClassName("com.android.phone", "com.android.phone.NetworkSetting");
  startActivity(intent);


如果想跳转到系统管理应用程序界面

  Intent intent =  new Intent();  

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

  intent.setClassName("com.android.settings", "com.android.settings.ManageApplications");  

  startActivity(intent);  


阅读(1301) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~