0

I am working on an application in the application I need pre-populated database, and I also want our regular database too. Is there any other way to do this in only one database. Or it is good to take 2 databases.

Thanks in Advance.

Pradeep Deshmukh
  • 754
  • 1
  • 8
  • 17
  • sure, you can use one database – pskink Sep 01 '16 at 06:15
  • but will it be maintainable in situation of app updates? cos I want some pre-populated data too. – Pradeep Deshmukh Sep 01 '16 at 06:16
  • Rather than regular , you can go for Realm. Performance wise also the same is good. https://realm.io/news/realm-for-android/ – Sreehari Sep 01 '16 at 06:17
  • Ok... and is it a bad way to use 2 databases in android app that I am doing one is pre populated and other one is created by app ? – Pradeep Deshmukh Sep 01 '16 at 06:20
  • @Stallion your comment is not related to what the OP is asking. – Muhammad Babar Sep 01 '16 at 06:31
  • @PradeepDeshmukh its seem possible and ok to have multiple databases in apps. http://stackoverflow.com/questions/4234030/android-can-i-use-one-sqliteopenhelper-class-for-multiple-database-files – Muhammad Babar Sep 01 '16 at 06:33
  • You can do it several ways. Do you plan to use ORM (GreenDao or something else)? Are regular tables structure the same as pre-populated? Is user allowed to modify pre-populated data ? – Serg Sep 01 '16 at 06:56
  • @MuhammadBabar and Pradeep Deshmukh , If you can go through Realm features, its obvious that two DB's is possible in one App. – Sreehari Sep 01 '16 at 09:42

0 Answers0