Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.app.Activity;
import android.app.AlertDialog;

import android.content.DialogInterface;

public class Main {
    /**
     * Shows the status in Dialog.
     * 
     * @param context
     * @param message
     */
    public static void showStatus(Activity activity, String message, String title) {
        AlertDialog.Builder dialog = new AlertDialog.Builder(activity);
        dialog.setCancelable(false);
        dialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int whichButton) {
            }
        });
        dialog.show();
    }
}