private void refreshList() { this.contact_adapter.clear(); ContactRepositoryInterface datasource = ContactRepositoryFactory.getInstance().getContactRepository(this, this); datasource.open(); for (Contact c : datasource.all()) { this.contact_adapter.add(c); } datasource.close(); this.contact_adapter.notifyDataSetChanged(); EditText search_box = (EditText) findViewById(R.id.search_box); contact_adapter.getFilter().filter(search_box.getText().toString()); }