Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void showInfoDialog(Context context, String text) {
- AlertDialog.Builder builder = new AlertDialog.Builder(context);
- builder.setMessage(text)
- .setPositiveButton("OK", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int id) {
- dialog.dismiss();
- }
- });
- Dialog dialog = builder.create();
- dialog.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement