views:

211

answers:

2

I've developed an android-application that I'dd like to put up on the marketplace. However, I want to split it into two separate applications, one free (with ads), and one paid (logically without ads). How would I go about doing that? I'm not wondering about adding ads (I've alreaddy managed that), but how to take one existing android-application (eclipse-project) and split it into two without having to create a new project and just copy-paste every file one by one (or in batch for that matter). Is that possible?

Btw, I use GIT for SCM, so I've made two separate branches, one master and one free, but I need to set some cind of config-value that makes shure that the market separates them as two different applications.

Also, when a user 'upgrades', is it possible to copy the db from the free app to the paid one?

A: 

If you've made git branches, you're already done. git checkout <branchname> will convert your single Eclipse project from one version to another. You can change the config value in each branch and commit your changes.

Cory Petosky
Yes. I know that, however it's what config values I'm supposed to change I'm trying to find out.
Alxandr
You should update your question to reflect this. The question you asked is "how to take one existing android-application (eclipse-project) and split it into two without having to create a new project and just copy-paste every file one by one".
Cory Petosky
A: 

For your second question, don't you use the device's database? If so, you can access it at '/data/data/free_app/databases/' and copy it over to /data/data/paid_app/databases/ .

Or even use the same package name for the apps, and make both use the same database. You'll have to make the free one uninstall itself when the otehr is bought so the data doesn't get weird.

See here in case you use an app database.

gatnowurry