List of usage examples for android.app ProgressDialog ProgressDialog
public ProgressDialog(Context context)
From source file:Main.java
public static void showProgress(Context context) { ProgressDialog dialog = new ProgressDialog(context); dialog.show(); }
From source file:Main.java
public static ProgressDialog makeProgressDialog(Context ctx) { ProgressDialog p = new ProgressDialog(ctx); p.setCancelable(false);/*www . j a v a 2 s. c o m*/ p.setCanceledOnTouchOutside(false); p.setProgressStyle(ProgressDialog.STYLE_SPINNER); p.setIndeterminate(true); return p; }
From source file:Main.java
public static ProgressDialog ShowLoader(Context ctx) { ProgressDialog progress = new ProgressDialog(ctx); //progress.setTitle("StormCloud"); progress.setMessage("Loading..."); return progress; //progress.show(); // To dismiss the dialog //progress.dismiss(); }
From source file:Main.java
public static ProgressDialog getProcessDialog(Context context, String tips) { ProgressDialog dialog = new ProgressDialog(context); dialog.setMessage(tips);/* www . j a v a 2s.co m*/ dialog.setCancelable(false); return dialog; }
From source file:Main.java
public static ProgressDialog progressDialog(Context context, String message) { ProgressDialog dialog = new ProgressDialog(context); if (message != null) { dialog.setMessage(message);//w w w . ja v a 2 s. c o m } dialog.setIndeterminate(true); dialog.setCancelable(true); return dialog; }
From source file:Main.java
public static ProgressDialog createProgressDialog(Context context, String message) { ProgressDialog progress = new ProgressDialog(context); progress.setCancelable(true);/*from ww w . j a v a2 s .co m*/ progress.setMessage(message); return progress; }
From source file:Main.java
public static ProgressDialog createDialog(Context ct) { ProgressDialog progressDialog;/* w w w . ja v a2s . c o m*/ progressDialog = new ProgressDialog(ct); progressDialog.setIndeterminate(true); progressDialog.setCancelable(true); progressDialog.setCanceledOnTouchOutside(true); return progressDialog; }
From source file:Main.java
public static ProgressDialog createProgressDialog(String message, Context context) { ProgressDialog progressDialog = new ProgressDialog(context); progressDialog.setIndeterminate(true); progressDialog.setCancelable(true);/* w w w .j av a2 s . co m*/ progressDialog.setMessage(message); return progressDialog; }
From source file:Main.java
public static ProgressDialog buildProgressDialog(Context ctx, String message, boolean cancelable) { ProgressDialog pd = new ProgressDialog(ctx); pd.setMessage(message);//from w w w. j a va 2 s .c o m pd.setCancelable(cancelable); return pd; }
From source file:Main.java
public static ProgressDialog showProgressDialog(Context context, String title, String message) { ProgressDialog pd = new ProgressDialog(context); pd.setTitle(title);/*from ww w . j a va 2 s .c o m*/ pd.setMessage(message); if (pd != null && !pd.isShowing()) pd.show(); return pd; }