Tag Archives: Service Provider

How to Check whether is GPS is enabled in your android device?

By | June 3, 2012

This simple code checks whether GPS in enabled in your android device or not. If the GPS is not enabled the user is redirected to the settings page. [java] LocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE); boolean enabled = service.isProviderEnabled(LocationManager.GPS_PROVIDER); // Check if enabled and if not send user to the GPS settings if (!enabled) { Intent intent = new… Read More »