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 
cents.

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!
Anton


--~--~---------~--~----~------------~-------~--~----~



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. Changing appearance of the notification bar

Is it possible (preferably without root access)? I would like to make
my notification bar transparent, instead of the current white with
black text look. I found someone who tried to do this at
androidcommunity.com, but they apparently ended up bricking their G1
after messing around a bit too much (also, they needed root to do what
they did):

http://androidcommunity.com/forums/f28/custom-status-bar-9102/
--~--~---------~--~----~------------~-------~--~----~

2. How to change android emulator file system mode

Hi,

In android r2 sdk(android-sdk-linux_x86-1.0_r2.zip) the /data
directory is not read only, I use chmod 777 data but it says that the
file system is read only. How to change it because I need to put a
execution file into it or is there any other directory can be put. I
try to make a sdcard, althouth I can put file into is but still can
not change file mod to +x
Thanks for any help

--~--~---------~--~----~------------~-------~--~----~

3. Application not responding - boot receiver - Why does it happen?

4. Problematic Android heap management remaining cause of crashes

5. Trouble with TabActivity

6. Does Android need a more compelling/smoother user interface? (consumer view)

7. Creating gradients on a view/layout in xml.