Hi develeopers, I tried really hard to get over this, but I found no solution.
I want to fetch images from web and display them on the canvas of a view. While doing so I need to display a progressbar, so that the user has some idea what is going on. In the activity that owns the view I set requestWindowFeature(Window.FEATURE_PROGRESS) and then in the view I call first: activity.setProgressBarVisibility(true); and at every progress: activity.setProgress(prog); The problem is that I have to call the progress update whenever I fetch an image from inside the onDraw method and whatever I try (from the Handler to the Thread) the progress updates seem to be queued and triggered alltogether when the canvas has finished rendering, which is quite useless. I also tried to extract the image fetching logic out of the onDraw and show progress there (instead of in the onDraw), before calling invalidate, but nothing changes. The progressbar updates are always triggered at the end. Any help is very appreciated. Best regards, Andrea --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

