I would like to develop an Android application which will have a local database.
I also have a web service to retrieve data and store them on that local database.
Which design pattern do you recommend me for database access?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I did something similar in the past and I used dao pattern. I had a Dao class for each domain entity of my application (e.g. UserDao, BookDao, etc) and a helper class to manage database creation (a class that extends SQLiteOpenHelper).