0
Das funktioniert perfekt auf Lollipop:Wie repliziere ich die Schaltfläche Letzte Aufgaben/Apps in Android Marshmallow?
recents_button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click
Intent intent = new Intent ("com.android.systemui.recents.SHOW_RECENTS");
intent.setComponent (new ComponentName ("com.android.systemui", "com.android.systemui.recents.RecentsActivity"));
startActivity (intent);
}
Aber auf Eibisch ich:
java.lang.SecurityException: Permission Denial: starting Intent { act=com.android.systemui.recents.SHOW_RECENTS cmp=com.android.systemui/.recents.RecentsActivity } from ProcessRecord{96f7c1e 4931:com.myapp/u0a188} (pid=4931, uid=10188) not exported from uid 10043
Es sieht so aus, als ob sie das nicht mehr für Dritte verfügbar machen. Ich kann nicht sagen, dass ich davon überrascht bin. – CommonsWare