android check location services enabled with play services location api

后端 未结 4 480
囚心锁ツ
囚心锁ツ 2021-01-01 11:01

You can determine if any providers are available with LocationManager, but can it be done with the google play services location api?

When nothing is enabled, in fac

4条回答
  •  星月不相逢
    2021-01-01 11:43

    Google Play Services 7.0 introduced a Settins Api where you can ask for location settings you need and then query if are enabled or ask the user to enable them.

提交回复
热议问题