Giuseppe wrote: > 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. > > Changing a value implies that it's not correct to implement these as constants.
You probably should go for a resource-based approach. private static final boolean FOR_GOOGLE_MARKET = R.bool.forMarket; etc. The real question is how you're determining what your "market" is in the first place. Tell us that, please. > 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 > > Android comes with built-in tools to manage app variations between markets. They're called resources. http://developer.android.com/guide/topics/resources/index.html -- Lew -- -- 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 --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

