When should I use ACCESS_COARSE_LOCATION permission?

后端 未结 5 881
抹茶落季
抹茶落季 2021-01-31 13:31

I am building an Android app that will track the user\'s geolocation and draw their route on a map.

I am using the Google Play Services location API, as described here.<

5条回答
  •  旧巷少年郎
    2021-01-31 14:01

    Location can be determined by two ways:

    Using NETWORK_PROVIDER
    Using GPS_PROVIDER
    
    1. Using NETWORK_PROVIDER

      Android permissions required for using this provider are either ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION.

    2. Using GPS_PROVIDER

      Android permissions required for using this provider are only ACCESS_FINE_LOCATION

提交回复
热议问题