View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#85
I suggest to use:
LOCATION_METHOD_USER_SELECTED: Liblocation will choose the best possible location method based on location settings in control panel. You can think of it as asking all the methods CWP+ACWP+GNSS+AGNSS. Choose this method if you don't have any special needs.
, See http://wiki.maemo.org/Documentation/...onGPSDeviceFix

The check for accuracy has been suggested before (http://talk.maemo.org/showpost.php?p...0&postcount=50). I don't think power management is a valid reasoning not to enable GPS early on app startup - you can switch it off once you got a fix with sufficient accuracy, and - in case it doesn't get any good fix - after a reasonable timeout (e.g. 10 minutes). As noticed before the location-lib will keep the position, so when you click GPS button later, you'll very likely get a decent position instantly. This scheme will fail only for a usecase where you move away from where you started the app, and then click the GPS button in search station. For all other cases there'll be no difference regarding power consumption between starting GPS on app-start and switch off after time it needs for first fix, and doing the same on hitting button but make user wait for 20sec in that case. Also GPS doesn't eat that much power, so don't worry about some minutes of enabling it during app startup.

jOERG