Pick the fix
A 'nearby deals' feature needs city-level accuracy but uses best accuracy continuously. Fix?
Hint 1 of 1
What accuracy does the feature need?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Lower desiredAccuracy to about a kilometre, add a distanceFilter, and stop updates when the screen closes
Correct. It meets the need with far less power.
Why not the others?
- B Keep best accuracy but update less often with a Timer. GPS stays on, and timers don't run when suspended.
- C Request Always permission. More permission doesn't save battery.
- D Cache the last location forever. Stale location breaks the feature.