Example usage for android.app ProgressDialog ProgressDialog

List of usage examples for android.app ProgressDialog ProgressDialog

Introduction

In this page you can find the example usage for android.app ProgressDialog ProgressDialog.

Prototype

public ProgressDialog(Context context) 

Source Link

Document

Creates a Progress dialog.

Usage

From source file:Main.java

public static ProgressDialog createProgressDialog(Context context, String title, String message) {
    ProgressDialog pDialog = new ProgressDialog(context);
    pDialog.setTitle(title);//from   ww w .ja v  a 2 s .c  om
    pDialog.setMessage(message);
    return pDialog;
}

From source file:Main.java

public static ProgressDialog GetProgressDialog(Context context, String title, String message) {
    ProgressDialog progress = new ProgressDialog(context);
    progress.setTitle(title);/*from   w w  w. j  av  a 2 s. com*/
    progress.setMessage(message);
    //progress.setCancelable(false);

    return progress;
}

From source file:Main.java

public static void showProgress(Context context, CharSequence message) {
    mProgress = new ProgressDialog(context);
    mProgress.setMessage(message);//from  w  w  w  .  j a  v  a 2s  . c o  m
    mProgress.setIndeterminate(false);
    mProgress.setCancelable(false);
    mProgress.show();
}

From source file:Main.java

public static ProgressDialog showProgressDialog(Context context, String titleText, String processingText) {
    ProgressDialog progress = new ProgressDialog(context);
    progress.setTitle(titleText);/* ww w.  jav a2 s.com*/
    progress.setMessage(processingText);
    progress.show();
    return progress;
}

From source file:Main.java

public static void startProgressDialog(Context context, String str) {
    progressDialog = new ProgressDialog(context);
    progressDialog.setMessage(str);/*from  w  ww.  jav a 2s.c om*/
    progressDialog.setCancelable(false);
    progressDialog.show();
}

From source file:Main.java

public static ProgressDialog setupProgressDialog(Context ctx) {
    ProgressDialog progressDialog = new ProgressDialog(ctx);
    progressDialog.setIndeterminate(true);
    progressDialog.setCancelable(false);
    progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    progressDialog.setMessage("Loading...");
    return progressDialog;
}

From source file:Main.java

public static void showProgressDialog(Context context, String message) {
    progressDialog = new ProgressDialog(context);
    progressDialog.setMessage(message);/*from   www .  ja  va  2 s.  c  o  m*/
    progressDialog.show();
}

From source file:Main.java

public static void showProgressDialog(final Activity activity, String title, String message) {
    progress = new ProgressDialog(activity);
    progress.setTitle(title);/*ww w  .  ja va 2s .  co  m*/
    progress.setMessage(message);
    progress.show();
}

From source file:Main.java

public static void onProgressBarShow(Activity activity) {
    contentLoadingProgressBar = new ProgressDialog(activity);
    contentLoadingProgressBar.setCancelable(false);
    contentLoadingProgressBar.setMessage("We r almost there");
    contentLoadingProgressBar.show();//from   w w w . j a  va2s .c  o  m
}

From source file:Main.java

public static ProgressDialog showProgressDialog(Context context, String msg) {
    ProgressDialog progressDialog = new ProgressDialog(context);
    if (!TextUtils.isEmpty(msg))
        progressDialog.setMessage(msg);// www.  j av a  2s .co  m
    progressDialog.setIndeterminate(true);
    progressDialog.setCancelable(false);
    progressDialog.show();
    return progressDialog;
}