Code example for SparseBooleanArray

0
import com.wigwamlabs.booksapp.ui.BookListItemViewHolder; 
 
public class BookListAdapter extends SortedCursorAdapter implements CheckableAdapter, 
		PausableThumbnailAdapter, ThumbnailManager.Observer { 
	private boolean mCheckable = false;
	private final SparseBooleanArray mCheckedIds = new SparseBooleanArray();
	private final ImageDownloadCollection mThumbnails;
	private boolean mThumbnailsPaused;
 
	public BookListAdapter(Context context, BookListCursor list, ImageDownloadCollection thumbnails) {
		super(context, list);
		mThumbnails = thumbnails;
		ThumbnailManager.addThumbnailObserver(context,
				new WeakReference<ThumbnailManager.Observer>(this));
	} 
 
	public BookListAdapter(Context context, BookListCursor list, int sortedColumn,
			ImageDownloadCollection thumbnails) {
		super(context, list, sortedColumn);
		mThumbnails = thumbnails;