Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    private static ProgressDialog dialog;

    public static void showProgressDialog(Context c, String msg) {
        dialog = ProgressDialog.show(c, "", msg);
    }

    public static void showProgressDialog(Context c, int resId) {
        dialog = ProgressDialog.show(c, "", c.getString(resId));
    }
}