My application not starting from shortcut on device screen, but start from application list. This behaviour is reported for android 4.x This problem appears after installing application update. Shortcut is created for previous one. I'm not sure who created it - OS or user.
我的应用程序不从设备屏幕上的快捷方式开始,而是从应用程序列表开始Android 4.x报告此行为安装应用程序更新后出现此问题。为前一个创建快捷方式。我不确定是谁创建的 - 操作系统或用户。
Update:
Can I add/remove shortcut from home screen during install/uninstall?
更新:我可以在安装/卸载期间从主屏幕添加/删除快捷方式吗?
3 个解决方案
#1
4
If the application update changed the launcher activity name, then the shortcut can no longer find the application. See Things That Cannot Be Done for an explanation: basically your manifest xml is public API that you should only change very carefully.
如果应用程序更新更改了启动器活动名称,则快捷方式将无法再找到该应用程序。看看无法做出的解释:基本上你的清单xml是公共API,你应该只是非常小心地改变。
If this is the case in your application, there is a way to disable old launcher activity (which should remove all icons and shortcuts pointing to it) but I'm not sure if the disadvantages mentioned on the page still apply.
如果你的应用程序是这种情况,有一种方法可以禁用旧的启动器活动(应该删除指向它的所有图标和快捷方式),但我不确定页面上提到的缺点是否仍然适用。
#2
2
As you are well aware (but someone else who reads this may not be) this could be a problem with your manifest or launcher icon such that Android did not or could not install the new icon on the device. Android might leave the old icon there because it could not install the new one (or you did not tell it to install the new one).
如您所知(但其他人可能不会这样做),这可能是您的清单或启动器图标的问题,因此Android没有或无法在设备上安装新图标。 Android可能会在那里留下旧图标,因为它无法安装新图标(或者您没有告诉它安装新图标)。
If this were the case, the problem would probably affect many users and you would be able to recreate and solve the problem yourself. Moreover you have said that there has been no change to the manifest/icon.
如果是这种情况,问题可能会影响许多用户,您可以自己重新创建并解决问题。此外,您已经说过清单/图标没有变化。
ONE Since you opened this a year ago and have provided very little information, I'm guessing that this affects only a very small number of devices and/or users.
ONE自从你在一年前打开它并提供的信息非常少时,我猜这只会影响极少数设备和/或用户。
TWO I don't think you have been able to narrow it down to specific devices or users or I think you would have told us.
我不认为您能够将其缩小到特定设备或用户,或者我认为您会告诉我们。
THREE So we are probably talking about a problem that affects a small number of users on different devices.
三,所以我们可能正在谈论影响不同设备上少数用户的问题。
Update: you have now replied to one of my questions and said 100 out of 100,000.
更新:您现在回复了我的一个问题并说出100,000个中的100个。
If you phoned up Google and told them that your app had only successfully installed on 99.9% of devices, I'm sure they would be delighted (they might not say that to you).
如果你打电话给谷歌并告诉他们你的应用程序只在99.9%的设备上成功安装,我相信他们会很高兴(他们可能不会对你这么说)。
Do you have any information on what percentage of those 0.1% were able to subsequently uninstall / install ?
您是否有任何关于0.1%的后续卸载/安装百分比的信息?
Judging by the popularity of products such as Titanium Backup, the number of rooted Android devices is probably significantly more than 0.1%.
从Titanium Backup等产品的普及程度来看,Android设备的数量可能远远超过0.1%。
PackageManager, packages.xml and packages.list are well known targets for people who root their phones. PackageManager is just a jar, and there is an opensource version available. A permissions problem or an invalid entry in one of these files could easily account for the problem you see.
PackageManager,packages.xml和packages.list是众所周知的针对手机用户的目标。 PackageManager只是一个jar,并且有一个开源版本可用。其中一个文件中的权限问题或无效条目可以轻松解决您看到的问题。
Even if this problem is nothing to do with rooting, earlier versions of Android Market / Package Manager running on old devices with fewer resources were far less reliable than (for example) my (non rooted) Nexus 7 running Jelly Bean. I have been unable to recreate your problem on my Nexus 7. There again, I wouldn't expect to - based on what you have told us, it is highly unlikely that this is "your problem".
即使这个问题与rooting无关,早期版本的Android Market / Package Manager在资源较少的旧设备上运行的可靠性远远低于(例如)我的(非root)运行Jelly Bean的Nexus 7。我无法在我的Nexus 7上重新创建您的问题。再次,我不希望 - 基于您告诉我们的内容,这不太可能是“您的问题”。
Update: Can I add/remove shortcut from home screen during install/uninstall?
更新:我可以在安装/卸载期间从主屏幕添加/删除快捷方式吗?
Well, it's not ideal, but how about this approach ?
嗯,这不是理想的,但这种方法怎么样?
http://www.helloandroid.com/tutorials/removing-app-icon-launcher
http://www.helloandroid.com/tutorials/removing-app-icon-launcher
#3
1
May be for both applications package names are different plz check package names
可能对于两个应用程序包名称都是不同的plz检查包名称
#1
4
If the application update changed the launcher activity name, then the shortcut can no longer find the application. See Things That Cannot Be Done for an explanation: basically your manifest xml is public API that you should only change very carefully.
如果应用程序更新更改了启动器活动名称,则快捷方式将无法再找到该应用程序。看看无法做出的解释:基本上你的清单xml是公共API,你应该只是非常小心地改变。
If this is the case in your application, there is a way to disable old launcher activity (which should remove all icons and shortcuts pointing to it) but I'm not sure if the disadvantages mentioned on the page still apply.
如果你的应用程序是这种情况,有一种方法可以禁用旧的启动器活动(应该删除指向它的所有图标和快捷方式),但我不确定页面上提到的缺点是否仍然适用。
#2
2
As you are well aware (but someone else who reads this may not be) this could be a problem with your manifest or launcher icon such that Android did not or could not install the new icon on the device. Android might leave the old icon there because it could not install the new one (or you did not tell it to install the new one).
如您所知(但其他人可能不会这样做),这可能是您的清单或启动器图标的问题,因此Android没有或无法在设备上安装新图标。 Android可能会在那里留下旧图标,因为它无法安装新图标(或者您没有告诉它安装新图标)。
If this were the case, the problem would probably affect many users and you would be able to recreate and solve the problem yourself. Moreover you have said that there has been no change to the manifest/icon.
如果是这种情况,问题可能会影响许多用户,您可以自己重新创建并解决问题。此外,您已经说过清单/图标没有变化。
ONE Since you opened this a year ago and have provided very little information, I'm guessing that this affects only a very small number of devices and/or users.
ONE自从你在一年前打开它并提供的信息非常少时,我猜这只会影响极少数设备和/或用户。
TWO I don't think you have been able to narrow it down to specific devices or users or I think you would have told us.
我不认为您能够将其缩小到特定设备或用户,或者我认为您会告诉我们。
THREE So we are probably talking about a problem that affects a small number of users on different devices.
三,所以我们可能正在谈论影响不同设备上少数用户的问题。
Update: you have now replied to one of my questions and said 100 out of 100,000.
更新:您现在回复了我的一个问题并说出100,000个中的100个。
If you phoned up Google and told them that your app had only successfully installed on 99.9% of devices, I'm sure they would be delighted (they might not say that to you).
如果你打电话给谷歌并告诉他们你的应用程序只在99.9%的设备上成功安装,我相信他们会很高兴(他们可能不会对你这么说)。
Do you have any information on what percentage of those 0.1% were able to subsequently uninstall / install ?
您是否有任何关于0.1%的后续卸载/安装百分比的信息?
Judging by the popularity of products such as Titanium Backup, the number of rooted Android devices is probably significantly more than 0.1%.
从Titanium Backup等产品的普及程度来看,Android设备的数量可能远远超过0.1%。
PackageManager, packages.xml and packages.list are well known targets for people who root their phones. PackageManager is just a jar, and there is an opensource version available. A permissions problem or an invalid entry in one of these files could easily account for the problem you see.
PackageManager,packages.xml和packages.list是众所周知的针对手机用户的目标。 PackageManager只是一个jar,并且有一个开源版本可用。其中一个文件中的权限问题或无效条目可以轻松解决您看到的问题。
Even if this problem is nothing to do with rooting, earlier versions of Android Market / Package Manager running on old devices with fewer resources were far less reliable than (for example) my (non rooted) Nexus 7 running Jelly Bean. I have been unable to recreate your problem on my Nexus 7. There again, I wouldn't expect to - based on what you have told us, it is highly unlikely that this is "your problem".
即使这个问题与rooting无关,早期版本的Android Market / Package Manager在资源较少的旧设备上运行的可靠性远远低于(例如)我的(非root)运行Jelly Bean的Nexus 7。我无法在我的Nexus 7上重新创建您的问题。再次,我不希望 - 基于您告诉我们的内容,这不太可能是“您的问题”。
Update: Can I add/remove shortcut from home screen during install/uninstall?
更新:我可以在安装/卸载期间从主屏幕添加/删除快捷方式吗?
Well, it's not ideal, but how about this approach ?
嗯,这不是理想的,但这种方法怎么样?
http://www.helloandroid.com/tutorials/removing-app-icon-launcher
http://www.helloandroid.com/tutorials/removing-app-icon-launcher
#3
1
May be for both applications package names are different plz check package names
可能对于两个应用程序包名称都是不同的plz检查包名称