Here you can find the source of simpleDialogBox(Context context, String message)
public static void simpleDialogBox(Context context, String message)
//package com.java2s; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; public class Main { public static void simpleDialogBox(Context context, String message) { AlertDialog.Builder alertBuilder = new AlertDialog.Builder(context); alertBuilder.setTitle("Photo Cache").setMessage(message) .setCancelable(true)//from www . java2s . c om .setPositiveButton("Okay", new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); AlertDialog alertDialog = alertBuilder.create(); alertDialog.show(); } }