The AsyncTask API is deprecated in Android 11. What are the alternatives?
private WeakReference<MyActivity> activityReference; Good riddance that it’s deprecated, because the WeakReference<Context> was always a hack, and not a proper solution. Now people will have the opportunity to sanitize their code. AsyncTask<String, Void, MyPojo> Based on this code, Progress is actually not needed, and there is a String input + MyPojo output. This is actually quite … Read more