如何创建仅指示用户在Google Play上下载完整版本的存根应用程序? [英] How do you create a stub application that only directs users to download the full version on Google Play?

查看:118
本文介绍了如何创建仅指示用户在Google Play上下载完整版本的存根应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我只是想创建一个存根应用程序,它什么也不做,只是指导用户在Google Play上下载完整版本。 stub apk显然需要相同的包名,使用相同的证书签名但版本号较低。尽管只指向Google Play产品页面。这就是需要的吗?





您可以在Google Play上发布apk更新,而无需指示用户启动点击更新按钮吗?

p>感谢!

解决方案

试试这个:

  final String appName =com.example; 
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(market:// details?id =+ appName)));

请记住,用户可以不安装GooglePlay,在这种情况下,您希望捕获ActivityNotFoundException(或类似



您的应用程序存根必须具有相同的软件包名称,并且必须使用与GooglePlay中相同的证书进行签名。


Just looking to create a stub application that does nothing but direct the user to download the full version on Google Play once the application is launched.

I'm assuming the stub apk will obviously need the same package name, signed with the same certificate but have a lower version code. All while only pointing to the Google Play product page. Is that all that's needed?

Can you have the apk update upon launch from Google Play without directing the user to initiate clicking the update button?

Thanks!

解决方案

Try this one:

final String appName = "com.example";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+appName)));

Remember that user can have no GooglePlay Installed, in that case you want to catch ActivityNotFoundException (or something like that), and give link to browser.

Your app stub has to have same package name, and must be signed with same certificate as one in GooglePlay.

这篇关于如何创建仅指示用户在Google Play上下载完整版本的存根应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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