Back to project page dandy.
The source code is released under:
GNU General Public License
If you think the Android project dandy 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.workhabit.drupal.publisher.support; /*w w w . ja v a2 s. c om*/ import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; /** * Copyright 2009 - WorkHabit, Inc. - acs * Date: Sep 25, 2010, 8:10:55 PM */ public class DrupalDialogHandler { public static void showMessageDialog(Activity activity, String message) { AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setTitle("An Error occurred!"); builder.setMessage(message).setCancelable(false).setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.dismiss(); // close the dialog } } ); AlertDialog alert = builder.create(); alert.setOwnerActivity(activity); alert.show(); } }