isGpsSettingsEnabled

Checks if location services (GPS or network) are enabled on the device.

This method verifies if either the GPS provider or network provider for location is currently enabled in the system settings.

Return

true if either GPS or network location is enabled, false otherwise.

Parameters

context

The context used to access system services.