Warning: This AsyncTask class should be static or leaks might occur
How to use a static inner AsyncTask class To prevent leaks, you can make the inner class static. The problem with that, though, is that you no longer have access to the Activity’s UI views or member variables. You can pass in a reference to the Context but then you run the same risk of … Read more