Android AlertDialog Create showDialog(Context context, String title, String message)

Here you can find the source of showDialog(Context context, String title, String message)

Description

show Dialog

License

Apache License

Declaration

static public void showDialog(Context context, String title,
        String message) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import android.app.AlertDialog;
import android.content.Context;

public class Main {

    static public void showDialog(Context context, String title,
            String message) {/*w  w w. jav  a  2  s.c o m*/
        new AlertDialog.Builder(context).setTitle(title)
                .setMessage(message)
                .setPositiveButton(android.R.string.ok, null)
                .setIcon(android.R.drawable.ic_dialog_alert).show();

    }
}

Related

  1. newMessageDialog(final Context context, String dialogTitle, String screenMessage, int iconResourceId)
  2. showAuthenticatedDialog(Context context, String title, String text)
  3. showMessageDialog(Context context, String title, String strText)
  4. showSingleDialog(Context context, String title, String msg, boolean cancelable)
  5. getInstallationDialog(final Context context)
  6. makeDialogBox(Context context, String title, String message, String cancleButton, DialogInterface.OnClickListener cancelCallBack, String okayButton, DialogInterface.OnClickListener okayCallBack)
  7. simpleDialogBox(Context context, String message)
  8. dismissProgressBar(ProgressDialog progressBar)
  9. showConnectionErrorDialog(Context c)