App crashes onResume when canceling Notification
问题 I try to cancel my Notification in onResume() but it crashes: With displayNotification() i create the Notification. I also tried to set the cancelNotification() in a try catch. But this doesn't solve the problem. But without i can't even start the app to generate the Notification. Here are my Codesnippets: OnResume: @Override protected void onResume() //activity was resumed and is visible again { Log.d(logtag,"onResume() called"); super.onResume(); cancelNotification(); } cancelNotification()