My app is Activity based and has several levels, i.e. ActivityA has actions to start ActivityB, which in turn starts ActivityC. Pressing 'back' from ActivityC returns to ActivtyB, and going back from that returns to ActivityA, as you would expect.
In my ActionBar I've enabled the Home icon, so that it displays the Up navigation arrow. I intended it to work in the same way as the Back button, but clicking Up from ActivityC still returns me to ActivityA, even though I've added the following to the manifest:
<activity android:name=".activity.ActivityC"
android:parentActivityName=".activity.ActivityB">
<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.ActivityB" />
</activity>
Two questions:
1) Am I trying to misuse the ActionBar here? Should the Up icon always return you to the main activity? 2) Why is my implementation not working as I intended?