Android Progress Dialog Create showProgressDialog(Context mContext, CharSequence processMessage)

Here you can find the source of showProgressDialog(Context mContext, CharSequence processMessage)

Description

show Progress Dialog

Declaration

public static ProgressDialog showProgressDialog(Context mContext,
            CharSequence processMessage) 

Method Source Code

//package com.java2s;

import android.app.ProgressDialog;
import android.app.WallpaperManager;
import android.content.Context;

public class Main {
    public static ProgressDialog showProgressDialog(Context mContext,
            CharSequence processMessage) {
        ProgressDialog pDlg = new ProgressDialog(mContext);
        pDlg.setMessage(processMessage);
        pDlg.setProgressDrawable(WallpaperManager.getInstance(mContext)
                .getDrawable());//  ww  w . java2s.  co  m
        pDlg.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        pDlg.setCancelable(false);
        return pDlg;
    }
}

Related

  1. stallWithProgressDialog(Context context, String title, String msg, boolean indeter, boolean cancelable, int stallTime)
  2. showProgressDialog(Context c, String title, String msg)
  3. hideProgressDialog()
  4. showProgressDialog(String msg)
  5. showProgressDialog(String msg, final boolean isCancellable)