code: protected void showAlertDialog(Activity activity, String msg, String title) {
      AlertDialog.Builder builder = new Builder(activity);
      builder.setMessage(msg).setTitle(title)
      .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
        public void onClick(DialogInterface dialog, int id) {
          dialog.cancel();
        }});
      builder.show();
    }
docs: UTILITIES: