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
Asked
Active
Viewed 69 times
0
-
possible duplicate of http://stackoverflow.com/questions/2775628/android-how-to-periodically-send-location-to-a-server – Ramesh Aug 26 '15 at 11:39
-
Did not explore well.. Thank you – Sanyasirao Mopada Sep 15 '16 at 04:16
1 Answers
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