Created
November 16, 2014 20:31
-
-
Save erikcox/8a623a505ae44074a0f7 to your computer and use it in GitHub Desktop.
Android intent to go to the system settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Look into android.provider.Settings | |
Not all settings may be available on customized versions of Android, | |
so be sure to catch ActivityNotFoundException. */ | |
try { | |
startActivity(new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS)); | |
} catch (ActivityNotFoundException e) { | |
// Unavailable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment