Created
November 17, 2015 21:22
-
-
Save okmanideep/bcaf15a49d34d7908253 to your computer and use it in GitHub Desktop.
Takes the user to your app's info page in 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
private void goToSettings() { | |
Intent intent = new Intent(); | |
intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); | |
Uri uri = Uri.parse("package:" + getPackageName()); | |
intent.setData(uri); | |
startActivity(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment