Android AlertDialog Create showErrorDialog(Context context, int title, int message)

Here you can find the source of showErrorDialog(Context context, int title, int message)

Description

show Error Dialog

Declaration

public static void showErrorDialog(Context context, int title,
            int message) 

Method Source Code

//package com.java2s;
import android.app.AlertDialog;
import android.content.Context;

public class Main {
    public static void showErrorDialog(Context context, int title,
            int message) {
        new AlertDialog.Builder(context).setTitle(context.getString(title))
                .setMessage(context.getString(message))
                .setPositiveButton(android.R.string.ok, null).create()
                .show();//www.j av  a2s.com
    }
}

Related

  1. showAlert(Context parent, String alert)
  2. showAlertText(String alertText, Context context)
  3. showInfoDialog(Context context, String message, String titleStr, String positiveStr, DialogInterface.OnClickListener onClickListener)
  4. alert(Context act, String msg)
  5. alert(Context act, int strId)
  6. showAlertDialog(Activity ctx, String title, String text)
  7. createAlertDialog(Context cx, String title, String message)
  8. alert(String title, String message, Context context)
  9. alert(String title, String message, Context context, boolean linksClickable)