简体   繁体   English

Android应用内结算问题

[英]Android In-app Billing Issues

I am using this tutorial: 我正在使用本教程:

http://mcondev.wordpress.com/2011/06/26/integrate-in-app-billing-just-3-lines-of-code-in-your-app/ . http://mcondev.wordpress.com/2011/06/26/integrate-in-app-billing-just-3-lines-of-code-in-your-app/

When I get to the last step: 当我到达最后一步时:

 checkout.sendCheckoutRequest(purchaseUri.toString(),null);

it crashes. 它崩溃了。 What is the purchaseUri for? 什么是purchaseUri呢?

Thanks 谢谢

This purchaseUri is the “In-app Product ID” of your resource on the “market.android.com/publish->Create New In-App Product” options. 该PurchaseUri是您在“ market.android.com/publish->创建新的应用内商品”选项中资源的“应用内商品ID”。 This string should be set as the “in app product” id. 此字符串应设置为“应用内商品” ID。 That's why the “id” is most important. 这就是为什么“ id”最重要的原因。 The “In-App Product ID” is how you refer to that particular product. “应用内商品ID”是您指代该特定商品的方式。 Also, in Security.java dont forget to add your “public key” from your market place account “edit profile” page. 另外,在Security.java中,请不要忘记从市场帐户的“编辑个人资料”页面添加“公钥”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM