I'm developing an application that consumes, via REST, a third-party service. In some cases the service takes a long time to respond to me and, as the application is waiting for a response, a message appears giving the user the option to wait or close the application, as shown below:
This message appears mainly when I use 3G connection to consume the service.
Is there any way to avoid this message or increase response time indefinitely?
I did not use AsyncTask. I tried to make some adjustments but I did not succeed. So I would like to know if, under these circumstances, there is the possibility of avoiding the message. If using AsyncTask is the only way to avoid this scenario I would greatly appreciate recommending a material (or explanation) that is understandable to someone who does not have as much experience with Android as I do =)
From now on, I appreciate =)