Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;
import android.app.AlertDialog;

public class Main {
    static public void ok_dialog(Context ctx, String title, String text) {
        AlertDialog.Builder ad;
        ad = new AlertDialog.Builder(ctx);
        ad.setTitle(title);
        ad.setMessage(text);
        ad.setPositiveButton("Ok", null);
        ad.show();
    }
}