Re: [android-developers] runOnUIThread method in doInBackground of Async Task...

2011-10-03 Thread João Rossa
Im not using the android:configChanges because im using tasks(threads). I thought that using the onRetainNonConfigurationInstance() to save the state of the task would mean that it would still refresh the UI. I know that only the pre and post execute methods run on the UI thread, but i thought tha

Re: [android-developers] runOnUIThread method in doInBackground of Async Task...

2011-10-03 Thread João Rossa
Well when i rotate, either while the thread is started or after the screen data is refreshed it goes back to the fields having not been filled. but the thread does run because if i dont rotate the UI views are filled with the content i fetch from the server. regards, On Mon, Oct 3, 2011 at 10:30

Re: [android-developers] runOnUIThread method in doInBackground of Async Task...

2011-10-03 Thread TreKing
On Mon, Oct 3, 2011 at 12:25 PM, Bluemercury wrote: > Hi! im using an Async-Task and currently im using runOnUiThread in the > doInBackground method to refresh activities UI, this seems to be working but > on rotation it loses the data Can you elaborate on "it loses the data"?

[android-developers] runOnUIThread method in doInBackground of Async Task...

2011-10-03 Thread Bluemercury
Hi! im using an Async-Task and currently im using runOnUiThread in the doInBackground method to refresh activities UI, this seems to be working but on rotation it loses the data and im usng the getLastNonConfigurationInstance and the onRetainNonConfigurationInstance methods, here's the parent c