How to implement created_at and updated_at column using Room Persistence ORM tools in android
问题 How can I implement created_at and updated_at columns using Room Persistence ORM tools in Android, that can update the timestamp automatically when creating or updating a row in a table? 回答1: I've research many sites, but still not found any results can handle middleware or something like callbacks when we Query , Insert , Update , or Delete ,... methods from DAO s. As @selvin said, RoomDatabase.Callback interface only call when database created in first time. So, use that interface is