Another approach would be to package the extract functionality as
different activities and services, in a completely new APK. Users
would install the "lite" free  version and then when they want more
features they can pay and install the extra package.

Using the PackageManager or via Intents you can query if a given
activity or service is present.
R/

On Sun, Apr 19, 2009 at 7:47 PM, Edward  Falk <[email protected]> wrote:
>
>
> What is the best way to release two versions of an application?  E.g.
> a free version with limited features, and a paid version with the full
> feature set.
>
> #ifdef would be the ideal way to do this, but Java doesn't support it.
>
> Could I do something like:
>
>  try {
>    import com.foo.myapplication.ExtraFeatures;
>  } catch (Exception e) {
>    // ignore it, this must be the free version
>  }
>
> ?
>
> I could manage with this kind of construct, although #ifdef really
> would be ideal.
>
> Anybody?  How have other developers approached this problem?
>
>  -ed falk
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to