My Android app comes both as a free and paid version. I have created a library project and two additional Application projects, one ‘Free’ and one ‘Paid’ version (signed with the same key, of course). Note that these Application projects are pretty much empty, no settings etc. Hence, the library contains 99% of the code.
My app creates both an SQLite database and a SharedPreferences file with user data. Is it possible to copy these files between the free and paid versions? (The preferences are more important than the database.)
E.g.
- User runs the free version. A database and configuration file are created.
- User installs the paid version and runs it.
- The paid version checks for any free version data and copies it. This is what I want!
This, of course, only works if you are signing the free and paid apps with the same cert (which most sane people do).