Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.AlertDialog;
import android.app.Dialog;

import android.content.Context;

public class Main {
    public static Dialog createMessageDialog(Context context, String message) {
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setMessage(message).setCancelable(true);
        AlertDialog alert = builder.create();
        return alert;
    }
}