code: public static AlertDialog quickDialog(final Activity context, final String message) {
          final SpannableString s = new SpannableString(message); //Make links clickable
          Linkify.addLinks(s, Linkify.ALL);
  
          final Builder builder = new AlertDialog.Builder(context);
          builder.setMessage(s);
          builder.setPositiveButton(android.R.string.ok, closeDialogListener());
          AlertDialog dialog = builder.create();
          if(!context.isFinishing()) {
              dialog.show();
              final TextView textView = (TextView) dialog.findViewById(android.R.id.message);
              if (textView != null) {
                  textView.setMovementMethod(LinkMovementMethod.getInstance()); //Make links clickable
              }
          }
  
          return dialog;
      }
docs: Show a model dialog box.  The <code>android.app.AlertDialog</code> object is returned so that
  you can specify an OnDismissListener (or other listeners) if required.
  <b>Note:</b> show() is already called on the AlertDialog being returned.
  
  @param context The current Context or Activity that this method is called from.
  @param message Message to display in the dialog.
  @return AlertDialog that is being displayed.