Android Open Source - bankomatinfos Custom Alert Dialog

From Project

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.

Java Source Code

package at.zweng.bankomatinfos.util;
//  ww w  .j av  a  2 s  . c  o m
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) {
    this._ctx = ctx;
    this._title = title;
    this._message = message;

   * Show the dialog
  public void show() {
    Builder builder = new AlertDialog.Builder(_ctx);
    if (_title != null) {
    if (_message != null) {
    builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int id) {

   * Abstract method executed when user clicks ok
  public abstract void onOkClick();

Java Source Code List