Back to project page adamsonelearn.
The source code is released under:
MIT License
If you think the Android project adamsonelearn listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jaselogic.adamsonelearn; /*www. j av a2s.c om*/ import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; public class AlertDialogBuilder { public static class NeutralDialog { public NeutralDialog(String title, String message, Context context) { AlertDialog.Builder mBuilder = new AlertDialog.Builder(context); mBuilder.setTitle(title); mBuilder.setMessage(message); mBuilder.setCancelable(true); mBuilder.setNeutralButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub dialog.cancel(); } }); mBuilder.create().show(); } } }