Android 4: Benachrichtigungen können nicht durch Wischen verworfen werden

Ich habe einen Code, der einige Benachrichtigungen erstellt, es ist wirklich einfach.

int icon = R.drawable.notification;
CharSequence tickerText = "Text";
long when = System.currentTimeMillis();
Notification notification = new Notification(icon, tickerText, when);

Context context = getApplicationContext();
CharSequence contentTitle = "Text";
CharSequence contentText = "Text";
Intent notificationIntent = new Intent(this, RequestActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
notification.flags |= Notification.DEFAULT_SOUND;
notification.flags |= Notification.DEFAULT_VIBRATE;
notification.flags |= Notification.DEFAULT_LIGHTS;
notification.flags |= Notification.FLAG_AUTO_CANCEL;

mNotificationManager.notify(notificationID, notification);

Es funktioniert alles gut in 2.1. In 4.0 funktioniert alles einwandfrei, mit der Ausnahme, dass die Aktion "Zum Entlassen wischen" nicht funktioniert. Die Benachrichtigung geht leicht zur Seite, bleibt dann hängen und springt zurück. Irgendeine Idee? Vielen Dank.

Antworten auf die Frage(3)

Ihre Antwort auf die Frage