Java tutorial
//package com.java2s; import android.app.Activity; import android.content.DialogInterface; public class Main { /** * Shows the status in Dialog. * * @param context * @param message */ public static void showStatus(Activity activity, String message, String title) { android.app.AlertDialog.Builder dialog = new android.app.AlertDialog.Builder(activity); dialog.setCancelable(false); dialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }); dialog.show(); } }