Code example for ProgressDialog

Methods: setTitlesetCancelableshowsetIndeterminatesetMessage

     * Zips the file that Box sent to us and triggers an upload back to Box. 
    private void doZip() { 
        final ProgressDialog dialog = new ProgressDialog(this);
        dialog.setTitle("Making zip file");
        dialog.setMessage("Please wait...");
        final Handler handler = new Handler();
        new Thread() {
            public void run() { 
                try { 
Stop searching for code, let great code find you!  Add Codota to your java IDE