Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final AlertDialog ad = new AlertDialog.Builder(this).create();
- ad.setTitle("Invalid User");
- ad.setMessage("Sorry, this program is in closed beta and only accessible to a few users.");
- ad.setCancelable(false);
- ad.setButton("Close", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- ad.dismiss();
- finish();
- }
- });
- if(foreground)
- ad.show();
Add Comment
Please, Sign In to add comment