Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    /**
     * Method to dismiss progress dialog.
     */
    public static void dismissProgress(ProgressDialog mProgressDialog) {
        if (mProgressDialog != null && mProgressDialog.isShowing() && mProgressDialog.getContext() != null) {
            try {
                mProgressDialog.dismiss();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}