There are a activities in my application. Lets call them activities 1,2,3. All of them child to MainActivity. In my application I define for each child activity:
<activity
android:name="SettingsActivity"
android:label="@string/title_gen_activity_settings"
android:parentActivityName="MainActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="MainActivity" />
</activity>
In onOptionsItemSelected it handled:
else if(item.getItemId() == R.id.set_general_settings){
Intent intent = new Intent(this, GeneralSettingsActivity.class);
startActivity(intent);
}
However if I navigate for example from main->1->2->3 and then press up button it return me 3->2->1-> main. It does not return me to 3->main. What can be the reason?