How to enable Location access programmatically in android?
问题 I am working on map related android application and I need to check location access enable or not in client side development if location services is not enable show the dialog prompt. How to enable "Location access" Programmatically in android? 回答1: Use below code to check. If it is disabled, dialog box will be generated public void statusCheck() { final LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); if (!manager.isProviderEnabled(LocationManager.GPS