Here you can find the source of showErrorDialog(Context context, int title, int message)
public static void showErrorDialog(Context context, int title, int message)
//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 } }