How do you create a stub application that only directs users to download the full version on Google Play?(您如何创建仅引导用户在 Google Play 上下载完整版本的存根应用程序?)
问题描述
只是想创建一个存根应用程序,它只会在应用程序启动后引导用户在 Google Play 上下载完整版本.
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.
我假设存根 apk 显然需要相同的包名称,使用相同的证书签名,但版本代码较低.一直只指向 Google Play 产品页面.这就是所有需要的吗?
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?
您能否在从 Google Play 启动时获取 apk 更新,而不指示用户开始点击更新按钮?
Can you have the apk update upon launch from Google Play without directing the user to initiate clicking the update button?
谢谢!
推荐答案
试试这个:
final String appName = "com.example";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="+appName)));
请记住,用户可以没有安装 GooglePlay,在这种情况下,您想捕获 ActivityNotFoundException(或类似的东西),并提供指向浏览器的链接.
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.
您的应用存根必须具有相同的包名称,并且必须使用与 GooglePlay 中相同的证书进行签名.
Your app stub has to have same package name, and must be signed with same certificate as one in GooglePlay.
这篇关于您如何创建仅引导用户在 Google Play 上下载完整版本的存根应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:您如何创建仅引导用户在 Google Play 上下载完整版本的存根应用程序?


基础教程推荐
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01