[Solved] How to delete items from recyclerview after 3 days automatically


You should save each date when you fill your recyclerView, maybe in a SQLite database, after that, you can check that register in onCreate() method of your activity, and add a condition (if has passed three days), if true, just refill it like this:

     mRecyclerAdapter = new mRecyclerAdapter(yourItemList);
     mRecyclerView.setAdapter(mRecyclerAdapter);
     mRecyclerView.getAdapter().notifyDataSetChanged();

After this, overwrite the date of your register in SQLite and that´s all, should work well,

Hope it helps,

3

solved How to delete items from recyclerview after 3 days automatically