@Override protected void onResume() { super.onResume(); // Clean card list, and get latest values appPref = new AppPref(this); mCards = new ArrayList<Card>(); cardManager.setCards(mCards); // cardManager.createScanCard(); scanCardNumber = 0; cardManager.createListCards(appPref.getScans()); mCards = cardManager.getCards(); adapter.notifyDataSetChanged(); }