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

标签 android notifications show

我想知道是否有一种方法可以取消选中“显示通知”检查,该检查允许禁用已安装的单个应用程序的通知(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 - 显示通知检查应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20458894/

相关文章:

android - 在 Android 中安排通知

mysql: show databases 不显示任何数据库

jQuery 如何仅显示/隐藏最近的跨度

android - 如何从其子 recyclerview View 中获取父 recyclerview 的引用?

android - 谷歌地图帮助

iOS 本地推送通知覆盖静音/静默模式

jQuery if 语句检查可见性

java - 单选按钮 If 语句

android - 为什么某些应用程序风格中没有出现无崩溃统计信息?