[android-developers] Re: Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-03 Thread Mike Hearn
If you look at Romain Guys Shelves app (where this class originates) he actually stops then restarts asynctasks when the screen rotates. This doesn't seem like a great way to go, as you throw away the progress. But as AsyncTasks have a reference to the activity, I can see why it's done. The

[android-developers] Re: Passing pointer to AsyncTask that changes GUI to onRetainNonConfigurationInstance?

2009-06-03 Thread twan
Thanks Streets Of Boston and Mike for your replies and ideas. I managed to solve this problem with your help. After some testing i made a Service which executes my tasks. When a task has a result i send the results to the activity which called the function on the service. When the screen rotates