Search code examples
databasesqliterhomobilepropertybag

Migration of database in Rhomobile


How do you migrate the data from your database with Property bag model to the application you build in Rho-mobile.

To illustrate this let I have an application in which I have a model Products and three attributes Name,Brand and SDK. I have inserted a number of values into the Products model while it was in development phase and running on emulator.But after building the application I don't see the data which I had inserted while running on the device.


Solution

  • There are several caveats when trying to pre-populate information into the database of the app (such as file size in older Android versions and such), but if you are determined, this is the link to the documentation of how to do it:
    http://docs.rhomobile.com/faq#how-to-pre-populate-client-database