List of utility methods to do GPS State Check
boolean | isGpsEnabled(Context c) is Gps Enabled LocationManager service = (LocationManager) c
.getSystemService(Context.LOCATION_SERVICE);
return service.isProviderEnabled(LocationManager.GPS_PROVIDER);
|
boolean | isSameGPSLocation(double lon, double lat, double lon1, double lat1) Same as query for a location in DatabaseHelper.findClosestAirportID() if (((lon - lon1) * (lon - lon1) + (lat - lat1) * (lat - lat1)) < 0.001) { return true; return false; |