• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handler and Progress

 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe your code is still running on the main thread and therefore the Animation is not not smooth. Can you post some code? That way people will have better view of your problem.
 
Pratik Goswami
Ranch Hand
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Monu,

Here is the code snippet -





Thanks
Pratik Goswami

 
Piyush Patel
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

This Example will help you ! Click on Example ProgressDialog with a second thread on that page.

Happy AndroiDCoding!!
Regards,
Piyush
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic