Here you can find the source of getProgressDialog(Context context, String message)
public static ProgressDialog getProgressDialog(Context context, String message)
//package com.java2s; import android.app.ProgressDialog; import android.content.Context; public class Main { public static ProgressDialog getProgressDialog(Context context, int message) { return getProgressDialog(context, context.getString(message)); }//from w ww . java 2 s .co m public static ProgressDialog getProgressDialog(Context context, String message) { return getProgressDialog(context, message, false, true); } public static ProgressDialog getProgressDialog(Context context, String message, boolean CanceledOnTouchOutside, boolean cancelAble) { ProgressDialog progressDialog = new ProgressDialog(context); progressDialog.setMessage(message); progressDialog.setCanceledOnTouchOutside(CanceledOnTouchOutside); progressDialog.setCancelable(cancelAble); return progressDialog; } }