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 that if
i used the runOnUiThread in the doItInBackground method of async task it
would still show the filled ui views.

regards,


2011/10/4 João Rossa <joao.ro...@gmail.com>

> 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 PM, TreKing <treking...@gmail.com> wrote:
>
>> On Mon, Oct 3, 2011 at 12:25 PM, Bluemercury <joao.ro...@gmail.com>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"?
>>
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>> transit tracking app for Android-powered devices
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to