Tuesday, May 22, 2012

Android open the System Settings interface : Android

Often need to open the system settings interface:

1. Open WirelessSettings:

Intent intent = new Intent("/"); ComponentName cm = new ComponentName("com.android.settings", "com.android.settings.WirelessSettings"); intent.setComponent(cm); intent.setAction("android.intent.action.VIEW"); Activity.this.startActivityForResult( intent , 0);

2. Open GPS Settings:

Intent intent = new Intent(android.provider. Settings.ACTION_LOCATION_SOURCE_SETTINGS); Activity.this.startActivityForResult( intent , 0);

3. Open Development Settings:

Intent intent = new Intent("/"); ComponentName cm = new ComponentName("com.android.settings", "com.android.settings.DevelopmentSettings"); intent.setComponent(cm); intent.setAction("android.intent.action.VIEW"); Activity.this.startActivityForResult( intent , 0);

4. Open Activity Picker:

Intent intent = new Intent("/"); ComponentName cm = new ComponentName("com.android.settings", "com.android.settings.ActivityPicker"); intent.setComponent(cm); intent.setAction("android.intent.action.VIEW"); Activity.this.startActivityForResult( intent , 0);

5. Open Language Settings

Intent intent = new Intent("/"); ComponentName cm = new ComponentName("com.android.settings", "com.android.settings.LanguageSettings"); intent.setComponent(cm); intent.setAction("android.intent.action.VIEW"); Activity.this.startActivityForResult( intent , 0);

In same way use the following fields directly to open the corresponding system interface:

com.android.settings.AccessibilitySettings //Accessibility settings com.android.settings.ActivityPicker //Select activities com.android.settings.ApnSettings // APN settings com.android.settings.ApplicationSettings // Application Settings com.android.settings.BandMode // GSM / UMTS bands com.android.settings.BatteryInfo // battery information com.android.settings.DateTimeSettings //date and time setting com.android.settings.DateTimeSettingsSetupWizard //date and time settings Wizard com.android.settings.DevelopmentSettings //application settings com.android.settings.DeviceAdminSettings //device manager com.android.settings.DeviceInfoSettings // mobile phones info com.android.settings.Display - //Set the font size com.android.settings.DisplaySettings //display settings com.android.settings.DockSettings //base settings com.android.settings.IccLockSettings //SIM card lock settings com.android.settings.InstalledAppDetails //Installed Application Details com.android.settings.LanguageSettings //language and keyboard settings com.android.settings.LocalePicker //select the phone language com.android.settings.MasterClear //restore factory settings com.android.settings.MediaFormat //formatting the phone memory com.android.settings.PhysicalKeyboardSettings //set the keyboard com.android.settings.PrivacySettings //privacy settings com.android.settings.ProxySelector //proxy settings com.android.settings.RadioInfo //phone information com.android.settings.RunningServices //running programs (services) com.android.settings.SecuritySettings //location and security settings com.android.settings.Settings //system settings com.android.settings.SettingsSafetyLegalActivity //safety information com.android.settings.SoundSettings //sound settings com.android.settings.TestingSettings // Displays the phone, battery, usage statistics, Wifi information, service information com.android.settings.TetherSettings //Tethring Settings com.android.settings.UsageStats //Usage statistics com.android.settings.UserDictionarySettings // user dictionary











0 comments:

Post a Comment

 
Powered by Blogger