''

def isGPSenabled(self):

    locationManager = cast('android.location.LocationManager', self.PythonActivity.mService.getSystemService(self.Context.LOCATION_SERVICE))
    isGPSEnabled = locationManager.isProviderEnabled(self.LocationManager.GPS_PROVIDER)
    return isGPSEnabled
