android-notification-bar

Android 4.1: How to check notifications are disabled for the application?

核能气质少年 提交于 2019-11-26 08:51:00
问题 Android 4.1 offers the user a check box to disable notifications for a specific application. However, as a developer we have no way to know whether a call to notify was effective or not. I really need to check if the notifications are disabled for the current application but I can\'t find any setting for that in the API. Is there ever a way to check this setting in the code? 回答1: You can't 100% can't. It is asked in this Google I/O 2012 video and the Project lead for the new notifications

Disable the notification panel from being pulled down

风格不统一 提交于 2019-11-26 05:58:24
问题 I am working on a lockscreen app and I need to disable the ability to pull down the notification/status bar at the top of the screen. There is an app called Holo Locker and what this app does is when the user pulls down from the top of the screen, it just sets the bar back up to the top of the screen and making it impossible to pull the drawer down. I have no idea where to start. Any help would be great! Thanks! 回答1: This is possible using reflection. There are plenty of problems though.

Android 4.1: How to check notifications are disabled for the application?

☆樱花仙子☆ 提交于 2019-11-25 18:55:04
Android 4.1 offers the user a check box to disable notifications for a specific application. However, as a developer we have no way to know whether a call to notify was effective or not. I really need to check if the notifications are disabled for the current application but I can't find any setting for that in the API. Is there ever a way to check this setting in the code? Blundell You can't 100% can't. It is asked in this Google I/O 2012 video and the Project lead for the new notifications declares that you can't. Edit 2016 update: Now you can check it, as said in this Google I/O 2016 video