带密钥的Android取消通知引发安全异常
注意到在带密钥的Android取消通知引发安全异常,android,Android,注意到在NotificationListenerService中运行cancelNotification(字符串键)时抛出了一些带有SecurityException的堆栈跟踪。这不应该发生吗 java.lang.SecurityException: at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.app.IN
NotificationListenerService
中运行cancelNotification(字符串键)
时抛出了一些带有SecurityException的堆栈跟踪。这不应该发生吗
java.lang.SecurityException:
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.app.INotificationManager$Stub$Proxy.cancelNotificationsFromListener(INotificationManager.java:985)
检查以查看是否已处理所有案例。@dustblue唯一可能未处理的“案例”可能是onListenerConnected()未在该点触发。