Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. private AlertDialog buildNotificationServiceAlertDialog() {
  2. final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
  3. alertDialogBuilder.setTitle("one");
  4. alertDialogBuilder.setMessage("two");
  5. alertDialogBuilder.setPositiveButton("yes",
  6. new DialogInterface.OnClickListener() {
  7. public void onClick(DialogInterface dialog, int id) {
  8. startActivity(new Intent(ACTION_NOTIFICATION_LISTENER_SETTINGS));
  9. }
  10. });
  11. alertDialogBuilder.setNegativeButton("no",
  12. new DialogInterface.OnClickListener() {
  13. public void onClick(DialogInterface dialog, int id) {
  14.  
  15. }
  16. });
  17. return (alertDialogBuilder.create());
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement