I wonder if it has any meaning to call super.onPostExecute(result) or super.onPreExecute in Android AsyncTask? I have been always calling them, but even in Android documentation about AsyncTask (Android API Reference: AsyncTask) they are omitted. So does it make any sense if I call them or not?
AsyncTask instances can only be used one time.
No, there is no need to call the superclass. If you take a look at the AsyncTask
source, you will see that the super class does nothing:
@SuppressWarnings({"UnusedDeclaration"}) protected void onPostExecute(Result result) { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With