[android-developers] Re: Calling ImageSwitcher.setImageURI() in a thread

2010-11-23 Thread Jherry
I found out. In fact the thread is not a GUI thread and that's why the view is not updated. To make it work I created an AsyncTask which is made for download stuff but can be used for this kind of need. Thanks! On 21 nov, 13:08, Jherry jherr...@gmail.com wrote: Hi, I want to display pictures

[android-developers] Calling ImageSwitcher.setImageURI() in a thread

2010-11-22 Thread Jherry
Hi, I want to display pictures into an ImageSwitcher and change image every 3 seconds. I instanciate a Thread that call the setImageURI(URI) and I schedule it every 3 seconds. It does not update the view and I don't know how to do it. If I call the same code that call the setImageURI() from the