安卓市场程序

发布于 2024-12-05 18:43:58 字数 515 浏览 3 评论 0原文

我即将完成一个 Android 程序。虽然我可以将其设计为具有试用时间范围并在之后“锁定”,但我无法确定如何在之后有效地解锁它。由于我对这种类型的开发完全陌生,因此我希望以最好的方式获得一些帮助。

客户是否在试用后购买产品并联系我,我向他们发送解锁代码? Java API 中是否有一个库可以连接到谷歌市场并确定用户购买了该产品,然后可以通过这种方式解锁?

编辑:该程序目前预计仅在 Android 平板电脑上运行,据我了解,并非所有平板电脑都具有蜂窝服务,因此连接性更加有限。

试用时间范围应该像记录第一次运行的时间一样简单,然后如果程序在 X 天(或小时或其他)后运行,则锁定它。这只会在启动时进行测试,因为我需要允许用户在锁定用户之前使用程序完成当前的提交。

至于计费,程序本身会有类似于MMO游戏的付费计划。现在以 X 美元购买,然后以 Y 美元订阅(目前计划按年许可),或者可能首次计费包括首次订阅。 Billing API 如何处理这种情况?我需要向他们收取该计划的费用,然后收取许可证费用,然后要求他们在我确定的最佳时间范围内续订许可证。

I am getting close to finishing a program for android. While I can design it to have a trial time frame and "lock" after, I am having trouble determining how I can effectively unlock it after. As I am totally new to this type of development, I was hoping for a little help in the best way to go about it.

Does the customer buy the product after the trial and contact me and I send them an unlock code? Is there a library in the Java API to connect to google marketplace and determine that the user bought the product, then it can be unlocked that way?

EDIT: This program is slated to only run on the Android Tablet at this time and as I understand it not all tablets have cellular service and therefore much more limited connectivity.

Trial time frame should be as easy as record time of first run then if program is run X days (or hours or whatever) later, lock it. This will only test on startup as I will need to allow the user to finish their current submission with the program before I lock them.

As for billing, the program itself will have a payment plan similar to MMO games. Buy now for $X then a subscription at $Y (currently planned for a yearly license), or possibly first billing includes first subscription. How does the Billing API handle that situation? I would need to bill them for the program, then bill for the license, then require them to renew the license in whatever time frame I determine to be best.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无言温柔 2024-12-12 18:43:58

我可以给您提供“解锁代码”的答案,但试用时间范围可以通过多种方式实现。

您可能想要研究一下 Google 提供的应用内结算 API。您可以在这里找到所有相关信息:应用内结算概述 | Android 开发者。它允许用户选择购买一次物品(例如特殊游戏物品、功能购买)或多次购买物品(例如游戏金币或定期订阅)。

您必须在自己的服务器上处理应用程序所需的任何内容交付,但计费 API 可以处理购买,并且基本上可以向您的应用程序发送一条消息,说明用户不应再处于试用模式。

I can give you an answer for providing the "unlock code" but the trial time frame could be implemented in a number of ways.

You're probably going to want to look into the in-app billing API that Google provides. You can find out all about it here: In-app Billing Overview | Android Developers. It allows you to give the users the option to either buy an item once (e.g. special in game item, feature purchase) or multiple times (e.g. in game gold or recurring subscription).

You would have to handle any content delivery that the application would need on your own server but the Billing API can handle the purchase and could just basically send your application a message saying that the user shouldn't be in trial mode anymore.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文