Sunday, April 7, 2013

[android-developers] How to compile APK using different constant

I have a Consant.java file that manage few static variable for different store:

static private boolean isForGoogleMarket = true;
static private boolean isForOperaMarket = false;
static private boolean isForTStoreMarket = false;
static private boolean isForAmazonMarket = false;
static private boolean isForSamsungMarket = false;
static private boolean isForAndroidPitMarket = false;

When I compile the APK for each market, I need to change the value of the const above.

I am looking for a solution to build each apk for each market changing the constant automatically.

Probably Marven config can be the solution, but I really don't know how to do

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate