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

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

问题描述

如果我有在Android Market付费应用程序的免费版本,我怎么可以放置在免费的应用程序,在市场上打开了付费版按钮?

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天全站免登陆