自动更新平板电脑上的 Android 应用程序(即无需市场!)
我编写了一个Android应用程序,主要针对没有安装Market的Android平板电脑,这意味着用户无法轻松更新该应用程序。我的想法是下载 apk 文件并执行 MArket 使用 apk 文件执行的操作。
由于该应用程序预装在平板电脑上,因此没有权限限制,但设备不得root。
I've written an Android App which is primarily targeted to Android Tablets without the Market installed, which means the user cannot easily update the App. My idea is to download the apk file and do whatever the MArket is doing with the apk file.
As the app is preinstalled on the Tablets there is no restriction in Permissions, but the device must not to be rooted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎以下代码允许用户在检测到新版本并下载 apk 文件后安装 apk:
Seems the following code allows the user to install the apk after detecting a new version and downloading the apk file:
好吧,我认为你可以做这样的事情。验证版本如果版本较低应用程序不会运行。
well i think that you just can do something like these. Verify version if version is lower app don't run.