Question

I have a application already in Android Market. I want to create a trial application that is based on the same code base and then add some new code to limit some key features. Is there any good tutorials, blogs, stack posts, etc. that discuss how to do this in eclipse with one code base to maintain.

One of the problems that I am having is when I access resources in the code you have to reference them such as packageName.R.whatever and two apps cannot have the same packageName. So my trial version could not reuse the code base because all the resource references would not work. Has anyone found ways around these issues? I have tried a lot of searching but am not coming up with a lot of answers.

Thank you for your help

Was it helpful?

Solution

I think that you need to do some refactoring, but hopefully not too much. Create a common code base, and place that code in an Android Library project. Then use that project from the full version, and from the trial version. Your library project can hopefully contain most of your code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top