我使用标准的Android IAB v3代码来检测启动时的商品价格。
但是,它不会为我的非托管项目返回任何SkuDetails,仅针对托管项目。
有什么想法吗?
static IabHelper.QueryInventoryFinishedListener mGotInventoryListener = new IabHelper.QueryInventoryFinishedListener()
{
public void onQueryInventoryFinished(IabResult result,
Inventory inventory)
{
if (result.isFailure())
{
return;
}
for (String sku : new String[]
{ "unmanaged_item1", "managed_item1" })
{
if (inventory.hasDetails(sku))
{
SkuDetails details = inventory.getSkuDetails(sku);
Log.d(TAG, sku + ": " + details.getTitle() + "," + details.getPrice());
}
}
}
};
答案 0 :(得分:0)