Question: Which of the following is the best way to request user permission if an Android application receives location updates from both NETWORK_PROVIDER and GPS_PROVIDER?
A
B
C
D
Adding this line to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
B
Adding these two lines to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
C
Adding this line to the Android manifest file: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
D
Adding this line to the Android manifest file: <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES" />
Note: Not available