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

https://github.com/zytc2009/BigTeam_learning

文章分类

全部博文(862)

文章存档

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
StringACTION_ACCESSIBILITY_SETTINGSActivity Action: Show settings for accessibility modules.
StringACTION_ADD_ACCOUNTActivity Action: Show add account screen for creating a new account.
StringACTION_AIRPLANE_MODE_SETTINGSActivity Action: Show settings to allow entering/exiting airplane mode.
StringACTION_APN_SETTINGSActivity Action: Show settings to allow configuration of APNs.
StringACTION_APPLICATION_DETAILS_SETTINGSActivity Action: Show screen of details about a particular application.
StringACTION_APPLICATION_DEVELOPMENT_SETTINGSActivity Action: Show settings to allow configuration of application development-related settings.
StringACTION_APPLICATION_SETTINGSActivity Action: Show settings to allow configuration of application-related settings.
StringACTION_BLUETOOTH_SETTINGSActivity Action: Show settings to allow configuration of Bluetooth.
StringACTION_DATA_ROAMING_SETTINGSActivity Action: Show settings for selection of 2G/3G.
StringACTION_DATE_SETTINGSActivity Action: Show settings to allow configuration of date and time.
StringACTION_DEVICE_INFO_SETTINGSActivity Action: Show general device information settings (serial number, software version, phone number, etc.).
StringACTION_DISPLAY_SETTINGSActivity Action: Show settings to allow configuration of display.
StringACTION_INPUT_METHOD_SETTINGSActivity Action: Show settings to configure input methods, in particular allowing the user to enable input methods.
StringACTION_INPUT_METHOD_SUBTYPE_SETTINGSActivity Action: Show settings to enable/disable input method subtypes.
StringACTION_INTERNAL_STORAGE_SETTINGSActivity Action: Show settings for internal storage.
StringACTION_LOCALE_SETTINGSActivity Action: Show settings to allow configuration of locale.
StringACTION_LOCATION_SOURCE_SETTINGSActivity Action: Show settings to allow configuration of current location sources.
StringACTION_MANAGE_ALL_APPLICATIONS_SETTINGSActivity Action: Show settings to manage all applications.
StringACTION_MANAGE_APPLICATIONS_SETTINGSActivity Action: Show settings to manage installed applications.
StringACTION_MEMORY_CARD_SETTINGSActivity Action: Show settings for memory card storage.
StringACTION_NETWORK_OPERATOR_SETTINGSActivity Action: Show settings for selecting the network operator.
StringACTION_PRIVACY_SETTINGSActivity Action: Show settings to allow configuration of privacy options.
StringACTION_QUICK_LAUNCH_SETTINGSActivity Action: Show settings to allow configuration of quick launch shortcuts.
StringACTION_SEARCH_SETTINGSActivity Action: Show settings for global search.
StringACTION_SECURITY_SETTINGSActivity Action: Show settings to allow configuration of security and location privacy.
StringACTION_SETTINGSActivity Action: Show system settings.
StringACTION_SOUND_SETTINGSActivity Action: Show settings to allow configuration of sound and volume.
StringACTION_SYNC_SETTINGSActivity Action: Show settings to allow configuration of sync settings.
StringACTION_USER_DICTIONARY_SETTINGSActivity Action: Show settings to manage the user input dictionary.
StringACTION_WIFI_IP_SETTINGSActivity Action: Show settings to allow configuration of a static IP address for Wi-Fi.
StringACTION_WIFI_SETTINGSActivity Action: Show settings to allow configuration of Wi-Fi.
StringACTION_WIRELESS_SETTINGSActivity Action: Show settings to allow configuration of wireless controls such as Wi-Fi, Bluetooth and Mobile networks.
StringAUTHORITY 
StringEXTRA_AUTHORITIESActivity Extra: Limit available options in launched activity based on the given authority.
StringEXTRA_INPUT_METHOD_ID

 

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


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);  


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