I have the following code and it\'s not good because sometimes GPS takes very long
How can I do the following:
Just using this, you can check GPS availability
GPS
LocationManager mlocManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);; boolean enabled = mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER);