Re: [android-developers] Rotation with ListActivity

2010-02-09 Thread Christoph Renner
Hi Noodles, I guess the problem is the following: your thread has a reference to the Activity or ListView. When the download is finished the thread uses this reference to add the items to the ListView. However when the screen orientation has changed, the activity has been destroyed and recreated a

[android-developers] Rotation with ListActivity

2010-02-08 Thread Noodles
I have a problem with rotation, during my ListActivity is loading data from the network. To do it I use a background thread which recovers data and put them inside an ArrayList. While this thread works, there is Progress dialog activated in foreground. For the rotation I use the method with onReta