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 {
    public static ProgressDialog progressDialog(Context context, String message) {
        ProgressDialog dialog = new ProgressDialog(context);
        if (message != null) {
            dialog.setMessage(message);
        }
        dialog.setIndeterminate(true);
        dialog.setCancelable(true);
        return dialog;
    }
}