How can I limit the number of rows in an Android room database by removing the oldest item in the row and inserting the newest one?
I am guessing its a standard query when adding an item to the database?
EDIT: I want to limit a database table to have a max row count of say 20. If that limit is reached, we remove the oldest item and insert the new one by keeping the current row count to 20.