AsyncTask can be carried through configuration changes by using
getLastNonConfigurationData (or some such, I writing this from my phone).
The technique was discussed on this list within the last month or two,
hopefully you can find it.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
31.12.2010 20:56 пользователь "TreKing" <[email protected]> написал:
> On Fri, Dec 31, 2010 at 11:48 AM, Robert <[email protected]> wrote:
>
>> The reason I want to do this is that the app is accessing a webserver via
>> an AsyncTask and I'd like to stop the restart until I can figure out how
to
>> link the background task to the new pid that is created. I've read some
>> pages on it but not yet clear how to do that.
>>
>
> Quoting the docs for that property:
>
> *Note:* Using this attribute should be avoided and used only as a
> last-resort. Please read Handling Runtime
> Changes<
http://developer.android.com/guide/topics/resources/runtime-changes.html>
> for
> more information about how to properly handle a restart due to a
> configuration change.
>
> I highly recommend you spend the time figuring out how to do this
correctly
> then wasting time on a hack that will cause other problems.
>
>
-------------------------------------------------------------------------------------------------
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to