Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Building multiple app versions for the Market
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jarkman  
View profile  
 More options Feb 18 2009, 1:50 pm
From: jarkman <jark...@gmail.com>
Date: Wed, 18 Feb 2009 10:50:16 -0800 (PST)
Local: Wed, Feb 18 2009 1:50 pm
Subject: Building multiple app versions for the Market
We're thinking about building light and paid versions of our app for
the Market. But I am not clear what we need to do, or how to do it.

(1) Do we definitely need the two versions to have different package
names for the two builds ?

It seems logical to do it that way, but I have not found a clear
answer from Google to that question. Though I have found several
people asking the same question.

(2) Is there any support in Eclipse for building two similar apps with
different package names from the same java and xml files ?

In most of the IDEs I've used, it is a doddle to define multiple build
targets for one project, but none of those mechanisms seem to be
present here. And, the package name is embedded in every java file, as
well as in many places in the manifest, leaving me without a tidy way
to build to alternate package names.

Is there a tidy way to build multiple version ? Or are we really going
to end up copying the whole codebase and search-and-replacing the
package name ?

Thanks,

Richard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattaku Betsujin  
View profile  
 More options Feb 18 2009, 4:36 pm
From: Mattaku Betsujin <mattaku.betsu...@gmail.com>
Date: Wed, 18 Feb 2009 13:36:58 -0800
Local: Wed, Feb 18 2009 4:36 pm
Subject: Re: [android-developers] Building multiple app versions for the Market

What I did was:

Put most of the functionality in a single package, say: com.foo.appcore

Then, each version of the app will be in a different package

com.foo.applite
com.foo.appfull

In development, I put the full version in Eclipse (i.e., appcore and
appfull), so it's easy to build and debug all the source code.

To build applite, I use a Makefile -- I tried ant, but it's just not as
flexible as make.

I got all that to work, and then I decided to make my program open-source so
all that was a waste of time :-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jarkman  
View profile  
 More options Feb 18 2009, 7:36 pm
From: jarkman <jark...@gmail.com>
Date: Wed, 18 Feb 2009 16:36:02 -0800 (PST)
Local: Wed, Feb 18 2009 7:36 pm
Subject: Re: Building multiple app versions for the Market
Thanks - so did you define your activities in com.foo.appcore, or do
they have to be in the com.foo.applite/appfull packages ?

On Feb 18, 9:36 pm, Mattaku Betsujin <mattaku.betsu...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattaku Betsujin  
View profile  
 More options Feb 18 2009, 8:57 pm
From: Mattaku Betsujin <mattaku.betsu...@gmail.com>
Date: Wed, 18 Feb 2009 17:57:00 -0800
Subject: Re: [android-developers] Re: Building multiple app versions for the Market

I have two APK files. One in com.foo.appfull package, the other in
com.foo.applite package.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jay-andro  
View profile  
 More options Feb 23 2009, 9:52 am
From: Jay-andro <jayan...@gmail.com>
Date: Mon, 23 Feb 2009 06:52:38 -0800 (PST)
Local: Mon, Feb 23 2009 9:52 am
Subject: Re: Building multiple app versions for the Market
Hi Mattaku (or anyone else who can help)

I am trying a similar approach. All my code (trial and full) is in a
single codebase. A set of preferences (set differently in the two
versions) determine whether the app behaves as a trial or as a full
app. In order to create two apk's out of this, I put all the code into
com.appcore.* packages. I then create com.appfull and com.apptrial
packages and place the respective android manifest files there. I make
the necessary changes to the manifest to make all the relative package
names in the manifest absolute. Now when I build say appfull in
eclipse, the issue I have is that R.java gets generated into
com.appfull, and all the classes in com.appcore.* are unable to refer
to R.layout objects because R is no longer in the same package
structure as themselves. I tried physically moving  the generated
R.java into com.appcore but didnt have any success with that, plus
thats not an elegant solution anyway.

The other issue is how do I get com.appfull to invoke/refer-to
com.appcore so that when I build, it will include both com.appfull and
com.appcore in the apk.

If you can share a more complete how-to on the appcore/appfull/applite
scheme you are using (or post the code somewhere), that would be very
helpful.

Thanks
Jay

On Feb 18, 8:57 pm, Mattaku Betsujin <mattaku.betsu...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mattaku Betsujin  
View profile  
 More options Feb 23 2009, 1:03 pm
From: Mattaku Betsujin <mattaku.betsu...@gmail.com>
Date: Mon, 23 Feb 2009 10:03:43 -0800
Local: Mon, Feb 23 2009 1:03 pm
Subject: Re: [android-developers] Re: Building multiple app versions for the Market

I use eclipse to build apptrial, and then use 'make' to build appcore (You
could use 'ant' as well). When using make, it's more flexible and I can
force the R class to be generated in the appcore package.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »