Hi all,
I'd like to hear from you about "in the field" use of GPS and what to expect as the resulting battery drain.
I wrote my device-tracking app. It is designed along the following assumptions:
1. use GPS only; no service from Google, no accurate location, no wi-fi etc.
2. GPS object defined and initialized in Starter service
3. GPS started in a second service which has : StartAtBoot=True, StickyService=True, StartAt 30minutes intervals
4. Main just set a "privacy" checkbox and has buttons to start/stop service and close app.
The general idea is that, once launched, the service keeps starting every half-hour, does a maximum of 3 readings (one every couple of minutes) and records the eventual locations to a remote server, only if the privacy checkbox allows it and the new location has a distance greater than 200meters from the previous one.
My doubts are:
1. do I really need to try 3 readings every 30minutes or should I simply start the service, wait for the first reading than stop the service and rely on next wake up? Will this significantly save my battery?
2. Do I need the Sticky flag?
3. What can I do to reduce battery drain to a minimum given that the service will operate for the great part of the day (probably the device will be turned off during night-time)?
TIA for all your hints and advice.
udg
I'd like to hear from you about "in the field" use of GPS and what to expect as the resulting battery drain.
I wrote my device-tracking app. It is designed along the following assumptions:
1. use GPS only; no service from Google, no accurate location, no wi-fi etc.
2. GPS object defined and initialized in Starter service
3. GPS started in a second service which has : StartAtBoot=True, StickyService=True, StartAt 30minutes intervals
4. Main just set a "privacy" checkbox and has buttons to start/stop service and close app.
The general idea is that, once launched, the service keeps starting every half-hour, does a maximum of 3 readings (one every couple of minutes) and records the eventual locations to a remote server, only if the privacy checkbox allows it and the new location has a distance greater than 200meters from the previous one.
My doubts are:
1. do I really need to try 3 readings every 30minutes or should I simply start the service, wait for the first reading than stop the service and rely on next wake up? Will this significantly save my battery?
2. Do I need the Sticky flag?
3. What can I do to reduce battery drain to a minimum given that the service will operate for the great part of the day (probably the device will be turned off during night-time)?
TIA for all your hints and advice.
udg