Guest User

Untitled

a guest
Jan 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. final AlertDialog ad = new AlertDialog.Builder(this).create();
  2.  
  3. ad.setTitle("Invalid User");
  4. ad.setMessage("Sorry, this program is in closed beta and only accessible to a few users.");
  5. ad.setCancelable(false);
  6. ad.setButton("Close", new DialogInterface.OnClickListener() {
  7.  
  8. public void onClick(DialogInterface dialog, int which) {
  9. ad.dismiss();
  10. finish();
  11. }
  12. });
  13.  
  14. if(foreground)
  15. ad.show();
Add Comment
Please, Sign In to add comment