如何在 Android 市场中从免费应用程序链接到付费应用程序? [英] How do I link from free to paid app in the Android market?

查看:23
本文介绍了如何在 Android 市场中从免费应用程序链接到付费应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在 Android 市场上有付费应用的免费版本,如何在免费应用中放置一个按钮来打开市场上的付费版本?

If I have a free version of a paid app in the Android market how can I place a button in the free app that opens the paid version in the market?

推荐答案

将此添加到按钮的 OnClickListener 的 onClick 方法中:

Add this to the button's OnClickListener's onClick method:

Intent marketLaunch = new Intent(Intent.ACTION_VIEW);
marketLaunch.setData(Uri.parse("market://search?q=uk.co.ashtonbrsc"));
startActivity(marketLaunch);

uk.co.ashtonbrsc 替换为可以找到您的应用的搜索词.

Replacing uk.co.ashtonbrsc with a search term that will find your app.

这篇关于如何在 Android 市场中从免费应用程序链接到付费应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆