2
I am developing an application that consumes, via REST, a third party service. In some cases the service takes time to answer me and, as the application is waiting for reply, a message appears offering the user the option to wait or terminate the application, as shown in the image below:
This message appears mainly when I use 3G connection to consume the service.
Is there any way to avoid this message or increase the response time indefinitely?
I didn’t use Asynctask. I tried to make some adaptations but I didn’t succeed. So I would like to know if, under these circumstances, there is a possibility of avoiding the message. If using Asynctask is the only way to avoid this scenario I would greatly appreciate the recommendation of a material (or explanation) that is understandable to someone who doesn’t have as much experience with Android as I do =)
From now on, thank you =)
Hello, @Androiderson. Could you include a small code demo in your reply? If these links become unavailable, there will still be code here. In addition to adding more value to stackoverflow.
– Olimon F.