September 2015
Beginner to intermediate
356 pages
7h 27m
English
The first important step before proceeding is to specify the required permissions to access GPS data. Two new permissions are required. They are:
android.permission.ACCESS_COARSE_LOCATIONandroid.permission.ACCESS_FINE_LOCATIONLet's discuss what these permissions are for:
This permission is used to retrieve the approximate location from cell phone towers and Wi-Fi.
This permission is used to retrieve the accurate location from GPS satellites, cell phone towers, and Wi-Fi.
We have learned about permissions in Chapter 2, Configuring an API Key and Creating Our First Map Application. Similarly, we add the permissions to the AndroidManifest.xml file.
The permissions are added as follows:
<uses-permission ...
Read now
Unlock full access