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;

public class Main {
    public static void fireAlertDialog(Activity aty, String msg) {
        new AlertDialog.Builder(aty).setMessage(msg).show();
    }

    public static void fireAlertDialog(Activity aty, int stringID) {
        new AlertDialog.Builder(aty).setMessage(aty.getString(stringID)).show();
    }
}