3

我设置了测试用户,以便我可以测试应用内计费是否有效,但我对这个过程有点困惑。

我在这里遵循 android 开发者计费测试指南:http: //developer.android.com/guide/google/play/billing/billing_testing.html

它有一些令人困惑的地方。它说不要发布您的应用程序,但不知何故我需要在我的手机上获取该应用程序。那么如何在手机上获取未发布的应用程序?

另外,我是否应该在应用程序上使用 google 保留的 4 个产品 id 并尝试购买它们,然后一旦我看到它有效,就可以摆脱那些按钮来购买那些测试产品?这就是这样做的意思吗?

谢谢!!

4

3 回答 3

2

它说不要发布您的应用程序,但不知何故我需要在我的手机上获取该应用程序。那么如何在手机上获取未发布的应用程序?

无需发布您的应用即可安装。创建一个签名的构建(参见http://developer.android.com/tools/publishing/app-signing.html)。adb install <apk name>然后使用必须上传到 Playstore 仪表板的相同版本将其安装在手机上。上传后,您将看到 2 个选项:

发布

节省

点击“保存”。保存您上传的应用程序后,您将能够为该应用程序添加 InApp 产品。您必须保存并发布您的应用内产品才能对其进行测试。

于 2012-07-17T11:24:00.457 回答
1

您应该将apk上传到您的开发者帐户并填写必填字段并保存而不发布它,然后您可以为应用程序创建应用内产品并发布它。请注意,应用内商品必须在测试计费前发布。但是您不需要发布应用程序来测试计费。

试试适用于 Android 的 MoVend 库。它支持 google play 应用内计费、paypal 等等。

http://www.movend.com/

于 2012-07-25T11:50:33.993 回答
0

How to sign an android apk file

To install it you can use adb or you can send this file by mail. Then download in the device and install it.

Check that Settings > Applications > Unknown sources is checked in the Device.

If you are having problems implementing in-app purchase I recommend you the library AndroidBillingLibrary.

于 2012-07-30T11:15:23.977 回答