Skip to content

Instantly share code, notes, and snippets.

@okmanideep
Created November 17, 2015 21:22
Show Gist options
  • Save okmanideep/bcaf15a49d34d7908253 to your computer and use it in GitHub Desktop.
Save okmanideep/bcaf15a49d34d7908253 to your computer and use it in GitHub Desktop.
Takes the user to your app's info page in settings
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