I have the following class:
public class getURLData extends AsyncTask{
@Override
protected String doInBackground(String... pa
If the user clicks the button, then has to wait for the content, what do they do meanwhile?
Why not do this:
This allows the user to go off and do whatever while the request is being processed.
An IntentService runs in the background on its own thread. When it receives an Intent, it runs onHandleIntent(). When that method finishes, the Service is cached: it's not active, but it can re-start quickly when the next Intent arrives.