Tuesday, 27 November 2012

Less accurate ACCESS_COARSE_LOCATION

According to the official specification, Android 4.2 returns less exact coordinates in case of determining the user's location using ACCESS_COARSE_LOCATION permission.


As you may already know, to be able to determine the user's location the application must request the ACCESS_COARSE_LOCATION permission OR the ACCESS_FINE_LOCATION, the later returning more precise results (also, may be using more battery power as it queries the integrated GPS chip).

The ACCESS_COARSE_LOCATION permission still works, don't worry, but results returned by it may not be as accurate as those returned by previous Android versions.
So.. if in the past your application worked just fine by using just ACCESS_COARSE_LOCATION permission, you may need to test it again and switch to ACCESS_FINE_LOCATION if the new results do not satisfy the needs of your application.


No comments:

Post a Comment