Monday, August 8, 2011

Re: [android-developers] How to detect which market the app was installed from

On Mon, Aug 8, 2011 at 9:13 PM, Nikolay Elenkov <nikolay.elenkov@gmail.com> wrote:
You need to have two different builds: one for the Android Market, another for the Amazon App Store. Use a library projects for the core and two app projects with different string resources for the rating/app link URL's.

You don't even have to go that far. One static flag is all you need.

switch(STORE)
{
 case ANDROID_MARKET: return ANDROID_MARKET_URL;
 case AMAZON_APPSTORE: return AMAZON_APPSTORE_URL;
}

Build twice, then done.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
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

No comments:

Post a Comment