GPS Avaiable?

public boolean locactionServiceAvaiable() {
  LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
  List<String> providers = lm.getProviders(true);	
  
  if(providers.size()>0) return true; else return false;
}

Add a Comment