Back to project page bankomatinfos.
The source code is released under:
GNU General Public License
If you think the Android project bankomatinfos 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 at.zweng.bankomatinfos.util; // ww w .j av a 2 s . c o m import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; public abstract class CustomAlertDialog { private final Context _ctx; private final String _title; private final String _message; /** * Constructor * * @param ctx * @param title * @param message */ public CustomAlertDialog(Context ctx, String title, String message) { super(); this._ctx = ctx; this._title = title; this._message = message; } /** * Show the dialog */ public void show() { Builder builder = new AlertDialog.Builder(_ctx); if (_title != null) { builder.setTitle(_title); } if (_message != null) { builder.setMessage(_message); } builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { onOkClick(); } }).create().show(); } /** * Abstract method executed when user clicks ok */ public abstract void onOkClick(); }