title: How to support Amazon and Android Market (Google Play) links in same APK
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5480235/supporting-amazon-and-android-market-links-inside-application">Supporting Amazon and Android market links inside application</a>  </p>
  </blockquote>
  
  
  
  <p>I was wondering if and how you could differentiate between an Amazon App Store installed app and one installed from the Market.</p>
  
  <p>For example, say I have my app called "Example App", and I want to develop for Amazon and the Market. In the app I have links to rate Example App. I also have a link to buy Example App Pro. This poses a problem because Amazon will not release my app if it links to a different App store.</p>
  
  <p>This requires me to make 2 APK files, which is a pain. It only takes about 30 seconds extra to export both, but it creates extra clutter and testing time.</p>
  
  <p>So has anyone found a way to make a single APK that can be uploaded to both Amazon and Android Market without making any changes between the two so that at run time I can check whether it's the Amazon or the Market that installed it and change the links accordingly?</p>