I used the technique in this chapter via NavUtil and the manifest to enable a View Fragment similar to CrimeFragment return to a parent activity which like CrimeListFragment is a ListView.
However what I am seeing is that when the “Up” button is pressed, the parent activity’s listfragment is being destroyed then recreated. I just thought it would be resumed.
I confirmed this with CriminalIntent this chapter. After testing I see that this is similar to startactivity(FLAG_ACTIVITY_CLEAR_TOP) as posited on pg,264 of book, which also destroy and recreates the parent activity/fragment as NavUtil does.
Is there a way when using fragments to make UP work like the back button and return to the previous listfragment without it being destroyed and rebuilt ala the back button? Or should I just punt on the UP button since the back button is doing what I need?
I like allowing the user to control the nav from the action bar rather than going down to the Back button. Thanks in advance!