我需要得到 sku 的价格。10 个 sku 放置在 dev 中。安慰。使用此代码,我只能获取有关已购买商品的信息。
Bundle querySkus = new Bundle();
querySkus.putStringArrayList(GET_SKU_DETAILS_ITEM_LIST, skuList);
Bundle skuDetails = mService.getSkuDetails(3,
mContext.getPackageName(), itemType, querySkus);
...
ArrayList<String> responseList = skuDetails
.getStringArrayList(RESPONSE_GET_SKU_DETAILS_LIST);
// ONLY 2 PURCHASED ITEMS HERE!!!
logDebug("Skus count: " + responseList.size());
for (String thisResponse : responseList) {
SkuDetails d = new SkuDetails(itemType, thisResponse);
logDebug("Got sku details: " + d);
inv.addSkuDetails(d);
}
那么,如何获取未购买的 sku 的价格?