开发者

Android In app Billing Item ID

Long things short: If im testing my In-App-Billing apk in the market i always receive "RequestPurchase: RESULT_ITEM_UNAVAILABLE"

Im feeling like a complete idiot atm and ran out of ideas how to fix it.

i call mBillingService.requestPurchase("itemxx", ""), wich works fine with static test.purchased.

But as soon as i upload the signed apk as a draft to the android market it doesnt manage to find my predefined item. Mybe the proper Question at this point is: "How does the ID of the Item in the Market has to be "named" relating to the id you made up in your application.

Can anyone provide me with a hint on what else i can try or look up?

APP: itemxx -> Market: itemxx
APP: itemxx -> Market: package.name.itemxx
APP: package.name.itemxx -> Market: package.name.itemxx
APP:开发者_如何学JAVA package.name.itemxx -> Market: itemxx


I solved the Problem for me. I use the Sample Code from this resource: http://www.anddev.org/advanced-tutorials-f21/simple-inapp-billing-payment-t52060.html, thanks for that Mr. @Blundell.

Besides changing the Package-Name to get it up and running it turned out that the ID in the app and in the Market has just to be the same, simple as that.

So i call BillingHelper.requestPurchase(mContext, "item.hacke"); and create an Item for the Application in Android market with the ID item.hacke.

Take care of the following Steps:

  1. Enter the Correct Public Key
  2. Use a different gmail account for your tests than the publisher account and enter the mail address as Test-Account right below the PublicKey
  3. Make sure the item in the market is published. Only the Item not the App.

good luck :D

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜