Code example for ProgressBar

Methods: setProgress

0
    public void showSuccess(String result) {
        Toast.makeText(this, result, Toast.LENGTH_LONG).show();
    } 
 
    public void updateProgress(Integer progress) {
        progressBar.setProgress(progress);
    } 
 
    private static class SampleTask extends 
            IgnitedAsyncTask<IgnitedAsyncTaskActivity, Void, Integer, String> {
 
        @Override 
        public boolean onTaskStarted(IgnitedAsyncTaskActivity context) {
            publishProgress(0); 
            return true; 
        } 
 
        @Override 
        public String run(Void... params) throws Exception {
            int progress = 0;
            while (progress < 100) {