admin管理员组文章数量:1356335
I have written an app called "calm" that mutes the phone when it's face down. It had been working ok since a few months ago. But now the "DnD" app (on Samsung phone) takes over control (not sure, maybe in the night) and closes/kills(?) the "calm" app leaving the phone in DnD (do not disturb) mode. My code uses:
mNotificationManager.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALARMS);
to set and this to reset dnd:
mNotificationManager.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL);
How can I avoid DnD app taking control? I have no time schedule set on the "DnD" app and dnd is not on there. Config details:
compileSdk 34
buildFeatures {
buildConfig = true
}
defaultConfig {
applicationId "com.xxxxxxxx.calm"
minSdkVersion 26
targetSdkVersion 34
versionCode 210
versionName "2.1.0"
}
本文标签: androidDnD app takes over control from another appStack Overflow
版权声明:本文标题:android - DnD app takes over control from another app - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743988050a2571630.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论