show Progress Bar - Android User Interface

Android examples for User Interface:ProgressDialog

Description

show Progress Bar

Demo Code

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

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

    }
}

Related Tutorials