I am creating an application which sends the location information to the server. But when the back or home button is clicked the application is stopped. Is there a way to ma
You need to run a Service class for your own application.
Refer docs for more information.