/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SQLiteWrapper handle = SQLiteWrapper.getInstance(PreviousBarcodeSearchList.this); BarcodeItem[] barcodes = handle.getRecentlySearchedProducts(handle.getReadableDatabase(), MAX_DAYS_SINCE_SEARCH); Log.v("Count", "Count: " + barcodes.length); setListAdapter(new CustomImageListAdaptor(this, barcodes)); }