Reputation: 1137
I have in my application set of objects for which data should be stored in sqlite database (persistent objects). Is there any good pattern I could follow to do it in elegant way?
Upvotes: 0
Views: 1062
Reputation: 540
I use the method described here http://www.vogella.com/articles/AndroidSQLite/article.html Works really good for me as it separates the database from the rest of the code. And since you send objects to the datasource its easy to replace it with another way of saving your objects.
Upvotes: 2