public boolean hasGPSDevice(Context context)
{
final LocationManager mgr = (LocationManager)context.getSystemService(Context.LOCATION_SERVICE);
if ( mgr == null )
return false;
final List
if ( providers == null )
return false;
return providers.contains(LocationManager.GPS_PROVIDER);
}