Do publish your imperfect book, your imperfect app and your imperfect application. Imperfections are real, and people like real things. Don´t be a plastic flower. Early release will give you valuable feedback. No release will give you …
The AsyncTask will be created and executed together with the Activity onCreate() method. But here we have a problem: the inner class needs to be accessing the outside class during its entire lifetime.
What happens when the Activity is destroyed? The AsyncTask is holding a reference to the Activity, and the Activity cannot be collected by the GC. This is what we called a memory leak.