1

I Just build an app to send lat and long data from device to server and i want to store it in database. App is working fine .. But what i need is. I want the app to send the same to the server even if the app is closed. How can i make the app to wake up on every 1 hour. So what changes should i made !

Akshay N Shaju
  • 355
  • 4
  • 17

1 Answers1

1

Create a class which extends service and create a thread inside it and start location updates inside the thread. You can use below link for reference which I had answered a year ago. In this you can use thread.

How to get FusedLocation from IntentService

Community
  • 1
  • 1
Anas Ahamed
  • 186
  • 10