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

  • SEARCH
  • Home
  • 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 9126907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:09:38+00:00 2026-06-17T07:09:38+00:00

I have a program that sets an alert dialog that asks Would you like

  • 0

I have a program that sets an alert dialog that asks “Would you like to purchase “TITLE” for “PRICE””

I know that the Google IAB library has a getSku() call but that’s only available after a result from purchasing the item. Is there a way to get these two variables before any purchasing? Thanks.

I might have seen an item that queries a bundle of sku’s which lists out all the items, but I may be wrong

  • 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-17T07:09:39+00:00Added an answer on June 17, 2026 at 7:09 am

    found a solution for this. first of all you will need the sku/product id.

    public void getProductDetails(String sku) throws RemoteException, JSONException {
        logDebug("getProductDetails - " + sku);
    
        ArrayList<String>  skuList = new ArrayList<>();
        // Add the specific sku
        skuList.add(sku);
    
        if (sku != null) {
             Bundle querySkus = new Bundle();
             querySkus.putStringArrayList(GET_SKU_DETAILS_ITEM_LIST, skuList);
             Bundle skuDetails = mService.getSkuDetails(3, mContext.getPackageName(),  ITEM_TYPE_INAPP, querySkus);
             ArrayList<String> responseList = skuDetails.getStringArrayList(RESPONSE_GET_SKU_DETAILS_LIST);
    
             for (String thisResponse : responseList) {
                 SkuDetails d = new SkuDetails(thisResponse);
                 logDebug("Looking at sku details: " + d);
                 purchaseTitle = d.getTitle(); // these are set as variables so you can call them
                 purchasePrice = d.getPrice(); // whenever you want
             }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that I run on amazon EC2 and I would like
I would like to write a program that sets an environment variable in an
I have a program that compares variables from two structs and sets a bit
I have a program that sets a global keyboard hook and handles key presses.
I have a program that draws Mandelbrot and Julia sets, displaying them with OpenCV(in
I have a program that sets the network interface to promiscuous mode, creates a
I have a program that I'd like to debug with gdb via emacs. In
My goal is to make a flash/as3 program that would pull multiple sets of
I have a JTable and a TableModel that extends AbstractTableModel . I would like
I have a file called VAR.bat that sets variables: SET VARa=C:\Program Files SET VARb=C:\Program

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.