如何在不创建快捷方式的情况下在Android中以编程方式更改“应用程序”图标? [英] How Can Change an Application icon programmatically in android without creating shortcut?

查看:222
本文介绍了如何在不创建快捷方式的情况下在Android中以编程方式更改“应用程序”图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想直接从程序中更改应用程序图标,并且不想创建和更新快捷方式。某些日历应用每天都会更改图标,而不会创建快捷方式。我阅读的
可以为清单中的每个图标创建活动别名元素。它对我有用,但是如果我想有30个像日历一样的图标,那么清单中应该有30个活动别名元素,我认为这不是正确的方法。我还读到,这种方式在不同设备上的工作方式不同。有人可以帮我吗?

I want to change an application icon directly from the program and don't want to create shortcut and update it. Some calender app changes icon everyday without creating shortcut. I read that can create activity-alias element for each of my icons in manifest. It's work for me but if I want to have 30 icons like a calender then I should have 30 activity-alias element in manifest and I do't think it's a correct way. I also read that this way works differently across devices. Can anyone help me?

推荐答案

您可以在智能启动器

智能启动器中可以选择不创建应用而更改应用程序图标捷径。
如果您对智能启动器还可以的话,就是这种方式。我不知道有什么其他方法。

there is an option in smart launcher to change icon of an app without creation a shortcut. if you are okay with the smart launcher then this is the way. I don't know any other way to do that.

这篇关于如何在不创建快捷方式的情况下在Android中以编程方式更改“应用程序”图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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