Android Progress Dialog Create showProgressBar(ProgressDialog progressBar, String message)

Here you can find the source of showProgressBar(ProgressDialog progressBar, String message)

Description

show Progress Bar

License

Open Source License

Declaration

public static void showProgressBar(ProgressDialog progressBar,
            String message) 

Method Source Code

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

public class Main {
    public static void showProgressBar(ProgressDialog progressBar,
            String message) {//  w w w. ja  v a2  s .  c  o m
        progressBar.setCancelable(false);
        progressBar.setMessage(message);
        progressBar.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        progressBar.show();

    }
}

Related

  1. showProgressDialog(Context mContext, CharSequence processMessage)
  2. showProgressDialog(Context c, String title, String msg)
  3. hideProgressDialog()
  4. showProgressDialog(String msg)
  5. showProgressDialog(String msg, final boolean isCancellable)