Code example for Criteria

Methods: setAccuracy

    protected Location currentLocation;
    public IgnitedAbstractLastLocationFinder(Context context) {
        this.context = context.getApplicationContext();
        locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
        criteria = new Criteria();
        // Coarse accuracy is specified here to get the fastest possible result. 
        // The calling Activity will likely (or have already) request ongoing 
        // updates using the Fine location provider. 
     * {@inheritDoc} 
    public Location getLastBestLocation(int minDistance, long minTime,
            boolean refreshLocationIfLastIsTooOld) {
        Location bestResult = null;
        float bestAccuracy = Float.MAX_VALUE;