包安装程序misbehavoir [英] Package Installer misbehavoir

查看:135
本文介绍了包安装程序misbehavoir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是无法理解和修复的包安装程序中显示的以下行为:在我的应用程序,当我在更新应用程序按钮,我从Web服务器未更新APK下载preSS(如果有)并启动程序包安装后,安装软件包。一切顺利的话,安装完成后也将显示两个按钮的视图打开和完成。然而pressing打开按钮无法打开已安装的更新,因为它应该就算意图的启动活动,因为我在logcat中观察到的发送。在菜单按钮pressing并经过安装的应用程序,我能找到更新的应用程序,并从这里开始吧。我应该怎么做,开始由pressing更新的最后包来安装视图中打开?

I am unable to understand and fix the following behavior displayed by the Package Installer : in my application when I press on a "update application" button I download from a web server un update apk (in case there is) and start the Package Installer afterwards to install the package. Everything goes well and after the installation finishes there is displayed a view with two buttons "open" and "done" . However pressing the "open" button fails to open the installed update as it should even if the intent to the startup activity is sent as I observed in logcat . Pressing on menu button and going through the applications installed I am able to find the updated app and start it from here . What should I do to start the update by pressing open in the final Package Installed view ?

推荐答案

这岂不是更好地使Android市场的应用程序处理下载​​和安装APK自己在你的应用程序中您的应用程序的更新过程呢?

Would it not be better to let the Android market place app handle the update process of your app instead of downloading and installing the apk yourself in your app?

您的问题犯规指定你为什么这样做,如果你有特殊原因,请更新您的问题,我会尽量再看一看。

Your question doesnt specify why you are doing this, if you have a specific reason, do update your question and i will try to have another look.

关于

这篇关于包安装程序misbehavoir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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