How to design a light and a full version of android app.

by Anton Pirker » Thu, 03 Sep 2009 17:35:46 GMT

Sponsored Links
 Hello Androids!

I have done a small app for the ADC2 and now i want to make a free light 
version for the Android market and one full version that will cost some 

My question now to all who have done something similar: How have you 
designed your application(s)?
I have thought about a few solutions to this problem:

1.) Duplicate the code in two different android projects
Not a very good idea, duplicate code is always bad.

2.) Create some sort of library to use in two different projects.
With this i could share the business logic of my app, but not the 
activities (at least this is what i think)
And using the activities from one project in another project would be great.

3.) Include all needed code (business logic, activities, ...) from one 
project (the full version) in my light version.
This way i would achieve some sort of new "view" to the code basis. This 
would be the best solution i think, but i do not know how to achieve this.

So to everybody who has done a full and light version of one and the 
same app: How have you done this?

In advance: Thanks for sharing!


How to design a light and a full version of android app.

by Chris Stratton » Thu, 03 Sep 2009 21:25:27 GMT

 I would recommend one shared code base, and some means of compiling it
in two different versions.  This will be important because you only
want to fix bugs once...

Not sure if eclipse or ant can handle this (probably somehow) but
there's always resort to recursive cp, find, and sed...   The latter
may be particularly useful if you want to do a global rename so that
it's technically possible to have full and light versions installed on
the same phone without conflict (being able to upgrade from light to
full and preserve user data might point in the other direction, at
least if the market will let you have to different apps with the same
package names)


Sponsored Links

Other Threads

1. Not able to scroll in WebView

In webview after loading data i want to scroll to the bottom of the
I tried using pageDown( true ) method it flickers goes down and then
comes up
please guide me how to scroll down in  a web view

2. NinePatchDrawable - how to use?

Is there any example out there on how to use a NinePatchDrawable
I need to draw a text label inside one -- essentially for a map-pin with
variable length text in it.

Any usage examples out there (of whatever kind), from the online doc it is
just a complete mystery to me how to use it.



3. CPU control API?

4. Testing internationalization...

5. how to debug the android source in windows

6. Contacts List Fail To Save To Phone

7. Reloading application database?