Filter items in GridView

view story

http://stackoverflow.com – Is there a way to filter out the items in a GridView, based on a variable of the item's object? For the moment, I'm using two ArrayList with the objects inside, one having the whole list, the other having the filtered list. The GridView's adapter is set to the filtered ArrayList. After filtering, I do the following: itemAdapter.notifyDataSetChanged(); gridAlbums.setAdapter(itemAdapter); gridAlbums.invalidateViews(); But I've put a download ProgressBar for when an item is clicked, and when I use my method to filter the GridView, the application freezes or crashes. (HowTos)