
ProgressBar is a graphical display indicators show some progress.
Progress bar in android useful because it gives users an idea of the time to complete the task.
Description: Android does not support a major UI update at runtime, only when using a Thread .
Declaration on java class:
ProgressBar pb = (ProgressBar) findViewById(R.id.myPB);
setProgress (): The method is very important, statusdari used to update the progress bar.
Source: Master Android (App)