我想知道是否有一种方法可以取消选中“显示通知”检查,该检查允许禁用已安装的单个应用程序的通知(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/