Skip to content

Instantly share code, notes, and snippets.

@sidishere
Created December 24, 2019 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidishere/1f7c88f0725f8e5e1166423ccc6eaaf8 to your computer and use it in GitHub Desktop.
Save sidishere/1f7c88f0725f8e5e1166423ccc6eaaf8 to your computer and use it in GitHub Desktop.
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(resultCode == RESULT_CANCELED)
Toast.makeText(this,"Please provide permission to turn on bluetooth",Toast.LENGTH_SHORT).show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment