Android HTTP Request AsyncTask
I think you didn’t understand exactly the way AsyncTask works. But I believe you wish to reuse the code for different tasks; if so, you can create an abstract class and then extend it implementing an abstract method you created. It should be done like this: public abstract class JSONTask extends AsyncTask<String, Void, String> { … Read more