Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create multiple Android apps from one code base

Tags:

I have an Android code base which uses APIs with settings to get different data for several apps. All apps use the same code base but with one or two design tweaks. So how do I re-use the main code base without having to copy the whole Android project each time?

iPhone uses multiple targets in the same project which works well. If android cant do this do I need to compile binaries of the code base in one project and then import into each new app project? If so how? I'm using Eclipse and am an intermediate Java developer.

Any help much appreciated!

Doug

like image 519
Doug Avatar asked Nov 15 '10 19:11

Doug


1 Answers

Check out "Working With Library Projects" from the Android documentation. This should be just what you're looking for: http://developer.android.com/tools/projects/projects-eclipse.html#SettingUpLibraryProject

like image 120
Blumer Avatar answered Oct 07 '22 22:10

Blumer