Tuesday, 15 July 2014

android - Delete inactive item from SQLite database in every 5 minutes(Chat) -



android - Delete inactive item from SQLite database in every 5 minutes(Chat) -

i have sqlite db in project in inserted chat conversations. so,i want delete conversations inactivated(no insertions) since lastly 5 mins. best way accomplish this? thought initializing countdowntimer while inserting each item db , reset when new item gets inserted. approach?

i created service checks database every 5 minutes , deletes inactive chats. now, works me. if there improve approach, please allow me know refactor it.

android sqlite chat countdowntimer

No comments:

Post a Comment