I am using the TaskStackBuilder and I followed the steps in Notifications to open an a Regular Activity. I also implemented both android:parentActivityName and the <meta-data android:name="android.support.PARENT_ACTIVITY..." in the Manifest.
However, when I press back (after opening the Activity) everything works fine in my Galaxy Nexus (4.2) but it doesn’t in my HTC Nexus One (2.3.6). The HTC phone closes the Activity and goes back to the home screen meanwhile the Galaxy Nexus constructs all the way back to the app main screen.
I can’t find a lot of information about this.. is this supported in Android 2.3?
Thanks.
No, this isn’t supported in 2.3. There is a compatibility library that you can use on devices which aren’t at API level 16 (JellyBean), but the compatibility library works only on Android 3.0 and up.
See http://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.html