public void selectNextCaches(final int amount) {
        int remaining = amount; // how many caches are left to check?
        final int max = list.size();
        for (int i = 0; i < max && remaining > 0; i++) {
            final Geocache cache = list.get(i);
            if (!cache.isStatusChecked()) {
                cache.setStatusChecked(true);
                remaining--;
            }
        }
        notifyDataSetChanged();
    }
Apply a new filter to the adapter (e.g. after filter was changed by user in menu)
main/src/main/java/cgeo/geocaching/ui/CacheListAdapter.java