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.
myProgressBar.setMax(100);
3. Compile and run!
Resources:
http://developer.android.com/reference/android/widget/ProgressBar.html#setMax(int)
http://android-coding.blogspot.com/2011/10/using-android-device-build-in-light.html