应用程序未安装误差,从主屏幕上的快捷方式启动时, [英] Application is not installed error, when launched from home screen shortcut

查看:230
本文介绍了应用程序未安装误差,从主屏幕上的快捷方式启动时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

供参考:我已经通过这些链接了已 <一href="http://stackoverflow.com/questions/4226132/application-not-installed-error-on-android">'Application没有安装在Android的错误

FYI: I have gone through these links already 'Application not Installed' Error on Android

<一个href="http://stackoverflow.com/questions/17299626/application-not-installed-when-i-try-to-autoupdate">Application当我尝试下自动更新没有安装

我的问题是有点不同。

  • 我在1.0版本发布了与缺省的/主要活动的应用程序为XActiivity.java
  • 在我发布的更新与改变缺省的/主要活动为YActivity.java
  • 我发现,应用程序打开罚款从申请meanu,但是当我尝试从主屏幕快捷方式启动,它抛出一个错误说不安装的应用

我知道,它是由于快捷方式引用到老XActivity.java,通过删除将解决这个问题,但如果我发布应用程序,以数千作为更新谁已经有这个程序会生气,在此错误消息的第一个实例。我将失去良好的评论我得到了

I know that its due to shortcut referencing to old XActivity.java, by removing would solve this issue, but if I release app to thousands as an update who already have this app would get annoyed at the first instance of this error message. I would loose on good reviews I got

推荐答案

这是因为主屏幕上的快捷方式略有不同,从一些发射器发射的图标。

That is because homescreen shortcuts work slightly differently from the launcher icons in some launchers.

您老快捷方式仍包含对XActiivity为主体的活动,当你已经更新了它是YActiivity。这将导致Android的认为未安装应用程序,因为它无法找到你的应用程序的XActiivity标记为主要活动。

Your old shortcut still contains a reference to XActiivity as the main Activity, when you have updated it to be YActiivity. This causes Android to think the app isn't installed, as it cannot find an XActiivity in your app marked as the MAIN Activity.

只需取下主屏幕图标并将其后面会解决这个问题。

Simply removing the home screen icon and adding it back will solve this.

这篇关于应用程序未安装误差,从主屏幕上的快捷方式启动时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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