Using Android’s 3.0 Fragments API, available for versions 1.6+ in the Android Compatibility Package, we can create an extra layer around AsyncTask that fixes the problem while preserving the abstraction.
A Fragment can outlive its parent Activity through configuration changes by way of setRetainInstance(true). Even better, overriding the proper Fragment event callbacks, it’s possible to distinguish between a recreation and a real destruction, as well as knowing for sure when an Activity is ready to receive events.
We’ll see how to create a Fragment to manage our AsyncTask instances, and ensure a live Activity instance at the time onPostExecute() is called. The mechanism is completely independent from the specifics of the background work, so it’s simple to create a full abstraction that gives a safe execution environment for callbacks and preserves the ease of use of AsyncTask.
Getting The Best Out Of Eclipse For Android Development
Otixo is trying to bridge the gap between all your cloud file storing services. The service allows you to combine cloud storage services and view them all from one place for free. On top of that, the web service supports WebDAV which allows you to combine all of your cloud storage services into a network drive.