Android Open Source - appservices-android-push-example Alert Dialog Manager






From Project

Back to project page appservices-android-push-example.

License

The source code is released under:

Apache License

If you think the Android project appservices-android-push-example 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 com.ganyo.pushtest;
//from ww  w  .  ja v a2  s .  c  o  m
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class AlertDialogManager {

  public void showAlertDialog(Context context, String title, String message) {

    AlertDialog alertDialog = new AlertDialog.Builder(context).create();
    alertDialog.setTitle(title);
    alertDialog.setMessage(message);

    alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, "OK", new DialogInterface.OnClickListener() {
      public void onClick(DialogInterface dialog, int which) {
      }
    });

    alertDialog.show();
  }
}




Java Source Code List

com.ganyo.pushtest.AlertDialogManager.java
com.ganyo.pushtest.AppServices.java
com.ganyo.pushtest.GCMIntentService.java
com.ganyo.pushtest.MainActivity.java
com.ganyo.pushtest.Settings.java
com.ganyo.pushtest.Util.java
com.ganyo.pushtest.WakeLocker.java