Code example for Criteria

Methods: setAccuracy, setAltitudeRequired, setBearingRequired, setCostAllowed, setPowerRequirement, setSpeedRequired

0
	} 
	  
	/** this criteria needs high accuracy, high power, and cost */ 
	public static Criteria createFineCriteria() {
	  
	  Criteria c = new Criteria();
	  c.setAccuracy(Criteria.ACCURACY_FINE);
	  c.setAltitudeRequired(false);
	  c.setBearingRequired(false);
	  c.setSpeedRequired(false);
	  c.setCostAllowed(true);
	  c.setPowerRequirement(Criteria.POWER_HIGH);
	  return c;
	  
	} 
	  
	/**  
	  make sure to call this in the main thread, not a background thread 
	  make sure to call locMgr.removeUpdates(...) when you are done 
	*/ 
	public static void init(Context ctx, LocationManager locMgr){