[英]I want to disable/hide applications on mobile, based on user selection from my application
I'm trying to create an application where the user get to see a list of applications available in the mobile and check them, so that the checked applications will be hidden once the user clicks the ÖK
button. 我正在尝试创建一个应用程序,用户可以在其中查看移动设备中可用的应用程序列表并进行检查,以便在用户单击
ÖK
按钮后隐藏已检查的应用程序。
I already developed retrieving the list of applications in the mobile part. 我已经开发了检索移动部分中的应用程序列表。 However, when I searched in google for hiding apps, I could not find any solution for that.
但是,当我在谷歌搜索隐藏应用程序时,我找不到任何解决方案。 I read in one suggestion, where it says to use
Package Manager
setApplicationEnabledSetting
, but I couldn't find a sample for it either. 我在一个建议中读到,它说使用
Package Manager
setApplicationEnabledSetting
,但我也找不到它的样本。
I will be so glad if anyone can let me know of a method and a sample to achieve this. 如果有人能让我知道实现这一目标的方法和样本,我将非常高兴。
at first i think you need os admin permission to access to apps list and hide apps icon 起初我认为你需要os管理员权限才能访问应用程序列表并隐藏应用程序图标
i wish below link help you to hide an app: 我希望下面的链接可以帮助您隐藏应用程序:
https://readyandroid.wordpress.com/hideunhide-app-icon-programmatically-android/ https://readyandroid.wordpress.com/hideunhide-app-icon-programmatically-android/
however if you hide an app icon in menu, user can see apps list complete in setting app part and you will need set password to open settings parts. 但是,如果您在菜单中隐藏应用程序图标,用户可以在设置应用程序部分中看到应用程序列表完成,您将需要设置密码才能打开设置部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.