Example usage for android.app ProgressDialog setMessage

List of usage examples for android.app ProgressDialog setMessage

Introduction

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

Prototype

@Override
    public void setMessage(CharSequence message) 

Source Link

Usage

From source file:Main.java

public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message,
        boolean indeterminate, boolean cancelable) {
    ProgressDialog dialog = new ProgressDialog(context);
    dialog.setTitle(title);/*from   ww  w .  j  ava  2s .  c o  m*/
    dialog.setMessage(message);
    dialog.setIndeterminate(indeterminate);
    dialog.show();
    return dialog;
}

From source file:Main.java

public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message,
        boolean indeterminate, boolean cancelable) {
    ProgressDialog dialog = new ProgressDialog(context);
    dialog.setTitle(title);//  ww  w  . j  a  v a  2  s  .c  om
    dialog.setMessage(message);
    dialog.setIndeterminate(indeterminate);
    dialog.setCancelable(cancelable);
    dialog.show();
    return dialog;
}

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 a  va 2 s  .  com*/
    progress.setMessage(message);
    //progress.setCancelable(false);

    return progress;
}

From source file:Main.java

public static ProgressDialog progressDialog(Context context, String message) {
    ProgressDialog dialog = new ProgressDialog(context);
    if (message != null) {
        dialog.setMessage(message);
    }//from   w ww.j  av a2  s  .co  m
    dialog.setIndeterminate(true);
    dialog.setCancelable(true);
    return dialog;
}

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. ja  va2s . c  om*/
    progress.setMessage(processingText);
    progress.show();
    return progress;
}

From source file:Main.java

public static ProgressDialog createProgressDialog(Context context, String message) {
    ProgressDialog progress = new ProgressDialog(context);
    progress.setCancelable(true);//from   w  w  w  .  j a va2 s.  c o  m
    progress.setMessage(message);

    return progress;
}

From source file:Main.java

public static ProgressDialog showProgress(Context context, CharSequence title, CharSequence message,
        boolean indeterminate, boolean cancelable) {
    ProgressDialog dialog = new ProgressDialog(context);
    dialog.setTitle(title);//w w w  .  ja  v a 2 s  . c om
    dialog.setMessage(message);
    dialog.setIndeterminate(indeterminate);
    dialog.setCancelable(cancelable);
    // dialog.setDefaultButton(false);

    dialog.show();
    return dialog;
}

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 showProgressDialog(Context context, String msg) {
    ProgressDialog progressDialog = new ProgressDialog(context);
    if (!TextUtils.isEmpty(msg))
        progressDialog.setMessage(msg);
    progressDialog.setIndeterminate(true);
    progressDialog.setCancelable(false);
    progressDialog.show();/*w w  w.  j  a v a  2s  . c  o  m*/
    return progressDialog;
}

From source file:Main.java

private static ProgressDialog createProgressDialog(Context context, String message) {

    ProgressDialog dialog = new ProgressDialog(context);
    dialog.setIndeterminate(false);// w w w  . j a  v a  2  s .  c o  m
    dialog.setMessage(message);

    return dialog;
}