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.content.Context;

public class Main {
    public static void showProgressDialog(Context mCtx, String msg) {
        final AlertDialog.Builder builder = new AlertDialog.Builder(mCtx);
        builder.setMessage(msg);
        builder.setCancelable(false);

        final AlertDialog dialog = builder.create();
        dialog.show();
    }
}