spacecowboy/NotePad — Issue #22: Change "up navigation" to be real up, not back
Author: spacecowboy
Created: 2012-01-20 10:00:48+00:00
State: open

Code should look like this:

// app icon in action bar clicked; go home
Intent intent = new Intent(this, HomeActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

The activity will receive the notification through onNewIntent if it is already open in the background.