从 Android 桌面删除图标
我目前正在开发一个应用程序,该应用程序应该配置连接到工作站的多个运行 Android 3.0 和 3.1 的设备。目前的任务要求我们删除桌面上的所有图标,然后将需要的图标放在上面。 所以问题是 - 是否可以选择以编程方式从 Android 桌面查找和删除图标? 任何解决方法都是可以接受的。
提前致谢!
I am currently working on an application that is supposed to configure several devices running Android 3.0 and 3.1 connected to the workstation. The task at hand requires that we remove all of the icons on the desktop and put the needed ones on it instead.
So the question is - is there an option of programmatically locating and removing icons from Android desktop?
Any workaround is acceptable.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此时我只知道一种方法:开发自己的“主屏幕”应用程序。如果您喜欢这种方式,请参阅如何创建Android 上的自定义主屏幕替换应用程序?
At this time I know only one way: develop your own "Home Screen" application. If you like this way, see How to create a custom home-screen replacement application on Android?
“配置”设备可能需要许多操作,而 Android 及其默认应用程序被设计为仅允许实时用户完成。
精心设计的方法是刷新一个 update.zip 来完成所需的更改,但这需要供应商签名密钥或解锁的恢复系统,以及默认应用程序存储其私有数据的方式的知识。
在 root 设备上,也可能在正在运行的系统上完成这些更改,或者至少在停止 android 运行时后启动系统上完成这些更改,然后在完成后重新启动它。
"Configuring" a device will likely require a number of operations which android and its default apps are designed to only permit a live user to accomplish.
The well-engineered means of doing this would be to flash an update.zip that accomplishes the desired changes, however this requires either the vendor signing keys or an unlocked recovery system, plus knowledge of the way the default apps store their private data.
On a rooted device it's probably also possible to accomplish these changes on a running system, or at least a booted one after stopping the android runtime and then restart it when done.