Handler and Progress

Tutorials with advanced 'difficulty' and more Lines of Code.

Handler and Progress

Postby pratik goswami » Sun Jun 20, 2010 2:48 pm

Hello Friends,

I am having trouble with Progress Dialog and Handler. The scenario is something like this - I have am having one function that set Handler to call after 2 seconds (postDelayed). I need to start Progress dialog when handler start to perform runnable function. I am able to display Progress Dialog but it is not animating all.

Any help guise?

Thanks
Pratik Goswami
pratik goswami
Junior Developer
Junior Developer
 
Posts: 19
Joined: Mon Sep 22, 2008 2:54 pm

Top

Re: Handler and Progress

Postby Brocade » Sat Jul 03, 2010 3:09 pm

the progressbar needs to be in its own thread (gui-wise) before it will animate. a simple indeterminate example is found on this very forum, else you can use this example of a determinate progress bar here http://huuah.com/android-progress-bar-a ... -updating/

-erin
Brocade
Freshman
Freshman
 
Posts: 4
Joined: Sat Jul 03, 2010 2:42 pm

Re: Handler and Progress

Postby limteckchai » Mon Aug 02, 2010 7:44 am

topic16474.html

Let me know if this helps !! :P
limteckchai
Experienced Developer
Experienced Developer
 
Posts: 92
Joined: Mon Jun 28, 2010 3:33 am

Top

Return to Advanced Tutorials

Who is online

Users browsing this forum: Google [Bot] and 5 guests