public void messageBox(String title, String message) {
AlertDialog alertDialog;
alertDialog = new AlertDialog.Builder(MyActivity.this).create();
alertDialog.setTitle(title);
alertDialog.setMessage(message);
alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
}
});
alertDialog.show();
}
No comments:
Post a Comment