Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9143591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:03:33+00:00 2026-06-17T10:03:33+00:00

With Android app stores offering marketplace-specific APIs, how do I build an Android app

  • 0

With Android app stores offering marketplace-specific APIs, how do I build an Android app that conditionally uses vendor-specific libraries? For example, Amazon offers their own In-App Purchase and "GameCircle" APIs. Google has their own Licensing APIs, and now Ouya will have their own APIs for IAP and hardware controllers.

With the proliferation of these vendor-specific SDKs it’s becoming difficult to maintain several separate builds of my Android games. I would like to know how to build my projects so that my code can just check at runtime for various APIs and use them if avaialble. Something like:

if (amazon api is available)
  // Do some amazon-specific stuff

At build-time I would link with ALL the libraries then upload the same universal app to each store.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:03:34+00:00Added an answer on June 17, 2026 at 10:03 am

    I’m using this currently.

    private boolean isAmazonInstall()
    {
        PackageManager pm = getPackageManager();
        String installationSource = pm.getInstallerPackageName(getPackageName());
        if (installationSource != null && installationSource.startsWith("com.amazon"))
        {
                        return true;
        }
                return false;
    }
    

    Allegedly, for an Amazon install, the return value of getInstallerPackageName is “com.amazon.venezia”. For applications installed from Google Play, the result is “com.android.vending” (although it used to be “com.google.android.feedback”. Manual APK installs return null.

    I haven’t been able to find official confirmation that this approach is valid. But I haven’t been able to find any better approach.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android app that stores user specific data to the users Google
My Android app stores its SQLite database on the SD card, so that when
I have an SQLite database for my Android app that stores a copy of
Hi we have an Android app that currently stores its data in xml files
I am developing an Android App that stores different types of data in the
My android app requires that the device has an SDcard and that SDcard is
I'm writing an android app that takes your current location and returns a list
I'm interested in uploading data (images mostly) from my Android App to Amazon S3
I'm creating an Android app that will be packaged and distributed in both lite
Please Help.... Ive created and App for Android 2.2 that creates a text file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.