I have an activity which needs to make two remote server calls. The first is simple and happens when the page loads and I just make a call to fetch some data and show it…no problem.
The problem happens in the second call because once I call sendFeedback, it tries to execute the task, but the doInBackground() method was written for the original call, and thus the parameters won’t work, and also the function that is called when the data is returned from the remote call won’t be the same for both calls.
What is commonly done in a situation that I am facing where I need to make two different remote calls from one Activity?
Thanks!
As dymmeh suggests, just use two different
AsyncTasksubclasses.