I am working on Google Maps in Android. It requests to the server for some content to be showed on markers, now I want to kill the connection of pending requests or all requests when user pans the map.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Close the underlying
InputStreamthis will close the connection as well.Regaring submitting requests to something (such as to your connection) and then cancelling the requests you can check
ExecutorServiceinterface. It hasexecute(),shutdown()andawaitTermination()