Android In-App billing item price

前端 未结 4 2064
情书的邮戳
情书的邮戳 2020-12-29 04:21

How can the price of an in-app billing item be retrieved before actually displaying the android market frontend for the in-app purchase? Currently it looks like the user onl

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 05:03

    If you are using the Trivial Drive example and included IabHelper class you need to pass a list of skus to queryInventoryAsync.

        String[] moreSkus = {"SKU_ITEMONE", "SKU_ITEMTWO"};
        mHelper.queryInventoryAsync(true, Arrays.asList(moreSkus), mGotInventoryListener);
    

提交回复
热议问题