Open MohamedHamada12 opened 6 years ago
@MohamedHamada12 You can simply do this by the following two lines : LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { // GPS settings enabled } else { // GPS settings not enabled }
@yehiahd Yes I know we can check using this way , but it should provided by library because Lib considered location setting enabled and try get location.
How I can check location setting after user give permission ?