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. SimpleCursorAdapter with rawQuery

In the API Demo, there is example on using SimpleCursorAdapter.
However, it is using the MediaStore cursor.

Is there any method so that I can use other external cursor prepare by
SQL database.
I don't know what should I input to the from String[].

Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~

2. Unable to do HTTP POST over emulator proxy

Hi all,

I'm trying to use Facebook Connect to login to Facebook in Android,
and due to our company's network usage policies, I have to do it
through a proxy. I've added -http-proxy and -debug-proxy to the proxy
settings, but when I try to do a HTTP POST, I keep getting the debug
message

"can't determine content length, and client wants to keep connection
opened"

After that, there is no more response. Is this a problem with the
emulator or the proxy server?

Any help is appreciated, thanks!

Regards,
Kevin.
--~--~---------~--~----~------------~-------~--~----~

3. How I can contribution my Lao localization

4. DNS woes with the emulator

5. Creating a new dictionary for spell correction and word completion

6. Proxy support not working in Android 1.6 emulator

7. What is the intended usage of the "Next" and "Done" keys on the soft keyboard