Hi there I’m starting to develop an Android app which will be using a SQLite DB that will hold several tables. What I would like to know is when specific tables were last updated as some data would not need to be updated for say a week where as other tables will need to be updated every few hours. Trying to save bandwidth and create a faster more responsive app. Not sure if there is a command for this (can’t seem to find anything) or if I should add a field within each table with the current time and date and use System.currentTimeMillis() to work out how long it has been.
I know this was asked below but was never answered, any help would be awesome 🙂
That I know of there is no SQL function to do it.
You could add a field to each record with a timestamp, then do a query to return the latest timestamp from the table.