Vikas wrote:
>> I have read on the forums that serialization
>> method is slow, so my question is should I use parcelable approach(and
>> whether the converting AsyncTask to parcelable will be same as
>> creating any other object parcelable). or both these approaches are
>> totally wrong i.e. I should not be using both the above approaches if
>> no then what is the correct approach which gives maximum performance
>> benefits.

Use a local service, and do your long-running operations there.
Carefully manage your communications between the background service and
the foreground activity so the service does not hang onto references to
former editions of the activity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

--~--~---------~--~----~------------~-------~--~----~
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