Actually you can update the UI from another thread with either AsyncTask , or use what is called a Handler, and post a runnable to the handler. The runnable will then contain the code to update the progressbar. I usually use the Handler / Runnable method.
-niko On Feb 10, 2:18 pm, TreKing <treking...@gmail.com> wrote: > On Fri, Feb 10, 2012 at 2:14 PM, Isuru Madusanka <isurum....@gmail.com>wrote: > > > I am working on ProgressBar class in android, but I can't make it > > progress through 5 seconds and load the application. Everything works > > but the progress bar not progressing. > > You can't update the UI in a different thread. Use an AsyncTask. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en