0

In my application, I would like to send user location to server continuously for every 5 minuets,.. I don't know much about services.. I would appreciate if someone can help me.. Please give me some references to create service and intentservice examples. Thanks

Sanyasirao Mopada
  • 943
  • 12
  • 31

1 Answers1

0

You should use a Service for that. Use START_STICKY to ensure it doesn't get killed permanently and/or set an Interval starting the Service using AlarmManager.

However you probably should reconsider doing this at all. No one wants an app which uses RAM and network bandwidth all the time and leaks personal data.

F43nd1r
  • 7,690
  • 3
  • 24
  • 62