Skip to content

Instantly share code, notes, and snippets.

@raveesh-me
Created October 27, 2017 23:07
Show Gist options
  • Save raveesh-me/4bdba70384f55d775373d7051c003a97 to your computer and use it in GitHub Desktop.
Save raveesh-me/4bdba70384f55d775373d7051c003a97 to your computer and use it in GitHub Desktop.
new AlertDialog.Builder(MainActivity.this)
.setTitle("Call Permission")
.setMessage("Hi there! We can't call anyone without the call permission, could you please grant it?")
.setPositiveButton("Yep", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
})
.setNegativeButton("No thanks", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
}
}).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment