付款后取消android广告

发布于 2025-01-04 15:47:02 字数 234 浏览 4 评论 0原文

前段时间我在市场上看到一个应用程序,其中有一个选项“该应用程序无需初始费用,但下载后支付少量费用,广告就会消失”。我是这方面的初学者,我的投资组合中没有当前的应用程序,有人可以告诉我如何实现这一点吗?基本上是如何运作的。您是否必须设置单独的计费方式,或者您可以使用 Android 市场计费系统,当他付款时,他可以下载取消广告的应用程序更新?!?!

我在网上找不到任何相关内容,所以如果有人能解释一下,我将不胜感激。

谢谢

Some time ago i saw an app on the market which had an option of "no initial fee for the app, but pay a small fee after you downloaded it, and the ads will disappear". I'm a beginner at this with no current apps in my portfolio, can anyone tell me how that can be made possible? Basically how it works. Do you have to set up a separate billing method, or you can use the android market billing system and when he pays he can then downloads an update of the app which cancels the ads ?!?!

I was unable to find anything related on the web, so if anyone can explain, i'd be grateful.

Thanks

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

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

发布评论

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

评论(1

森林很绿却致人迷途 2025-01-11 15:47:02

您可以使用应用内结算,一旦付款得到验证,您基本上就可以隐藏广告(将其可见性设置为“消失”)。
例子:

if(paid) {
 ad.setVisibility(View.GONE);
}

You can probably use in-app billing and once the payment have been verified you can basically hide the ad (set its visibility to GONE).
example:

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