isLocationEnabled

Checks if Location services are enabled on the device.

Return

true if Location is enabled, false otherwise

Parameters

context

The application or activity context