How to give option for enable GPS
问题 I want to show dialog box for turn on GPS when GPS is disable . See the image. When i click on YES then should be automatically turn on my GPS without going into setting. So , how can i enable GPS by select YES option ? 回答1: This is part of Google play service api since 7.0 called SettingsApi . Location settings - While the FusedLocationProviderApi combines multiple sensors to give you the optimal location, the accuracy of the location your app receives still depends greatly on the settings