Code example for ProgressBar

Methods: setSecondaryProgress

0
        { 
            super.onProgressUpdate(values);
            Log.i("==========================makemachine", "onProgressUpdate(): " + String.valueOf(values[0]));
            percentField.setText((values[0] * 2) + "%");
//            percentField.setTextSize(values[0]); 
            myProgressBar.setSecondaryProgress((values[0]));
            myProgressBarOrange.setProgress(values[0]);
            myProgressBarBlue.setProgress(values[0]);
            myProgressBarBlueCandyCane.setProgress(values[0]);
            myProgressBarRoundedCorners.setSecondaryProgress(values[0]);
             
//            for (int j=0; j< values[0]; j++) { 
//              myProgressBar.setProgress(j);   
//            } 
//            myProgressBar.setProgress(values[0] * 2); 
            Log.d(TAG, "--------------------------------------------------onProgressUpdate() was called");
        } 
 
        // -- called if the cancel button is pressed 
        @Override 
        protected void onCancelled()