Code example for ProgressDialog

Methods: setTitlesetCancelableshowsetIndeterminatesetMessage

0
    /** 
     * 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.setIndeterminate(true);
        dialog.setTitle("Making zip file");
        dialog.setMessage("Please wait...");
        dialog.setCancelable(false);
        dialog.show();
 
        final Handler handler = new Handler();
 
        new Thread() {
 
            @Override 
            public void run() { 
                try { 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE