I have an application that issues notifications that when selected start an activity. According to the Android docs I can use NavUtils.shouldUpRecreateTask to check whether the
I had the same problem as OP. NavUtils.shouldUpRecreateTask always seemed to return false. (JellyBean also) I used the following the achieve the same functionality.
case android.R.id.home:
Intent upIntent = new Intent(this,ParentActivity.class);
upIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(upIntent);
finish();
return true;
The 'parent' intent could be fetched this way instead of hard coding.
Intent upIntent = NavUtils.getParentActivityIntent(this);