android-显示通知检查应用程序

android-显示通知检查应用程序,第1张

概述我想知道是否有一种方法可以取消选中“显示通知”检查,以允许禁用已安装的单个应用程序的通知(Android4.1).或者,也可以通过“显示”将用户带入特定的系统面板通知”选项.解决方法:Iwouldliketoknowifthereisawaytouncheckthe“shownotifications”checkthatpe

我想知道是否有一种方法可以取消选中“显示通知”检查,以允许禁用已安装的单个应用程序的通知(Android 4.1).或者,也可以通过“显示”将用户带入特定的系统面板通知”选项.

解决方法:

I would like to kNow if there is a way to uncheck the “show notifications” check that permits to disable notifications for indivIDual app installed

系统应用程序可以做到这一点.以root用户身份运行的应用可能会入侵其中.否则,这是不可能的.

or alternatively a way to bring the user in the specific system panel with the “show notifications” option for that app

这只是特定应用程序的“设置”屏幕.在许多设备上,您可以显示出来,如https://stackoverflow.com/a/18873867/115145所示:

packagename = "your.package.name.here"try {    //Open the specific App Info page:    Intent intent = new Intent(androID.provIDer.Settings.ACTION_APPliCATION_DETAILS_SETTINGS);    intent.setData(Uri.parse("package:" + packagename));    startActivity(intent);} catch ( ActivityNotFoundException e ) {    //e.printstacktrace();    //Open the generic Apps page:    Intent intent = new Intent(androID.provIDer.Settings.ACTION_MANAGE_APPliCATIONS_SETTINGS);    startActivity(intent);}

总结

以上是内存溢出为你收集整理的android-显示通知检查应用程序全部内容,希望文章能够帮你解决android-显示通知检查应用程序所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1075669.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-26
下一篇2022-05-26

发表评论

登录后才能评论

评论列表(0条)

    保存