Hi i’m using Rotating Progress Bar in my Android Music Plyer Application….I’m not able to stop it. While working with horizontal Progress bar i used handler to stop and start it.
But while working with Rotating One, The progress bar goes into Infinite Loop…..
Can you please suggest method to stop the indefinite loop. Thanks in advance.
How about using ProgressBar#dismiss() method?
EDIT:
dismiss()is only forProgressDialog. ForProgressBaryou should toggle the Visibilty of the View.If
mHandleris a Handler bound to your UI thread andmProgressis yourProgressBar, you can have something like the following from inside the run method of your background thread: