How to Set the Maximum Upper Range of a ProgressBar

public synchronized void setMax (int max) was added in API level 1
Set the range of the progress bar to 0...max.
Parameters: max the upper range of this progress bar

1. Find a ProgressBar using ID named myProgressBar.

2. Add the line below to the onCreate method. This will set the maximum upper range of the myProgressBar to 100.