I have created application for taking photos. Application is tab-based. One tab is for camera. It has a layout, let's call it "Camera layout". After user presses "Photo" button from "Camera layout", that same tab should change it's content to "Photo preview" layout. I do it using "setContentView". The problem is that "setContentView" will change layout for good! Next time user opens "Camera" tab i would like to show him good old "Camera layout". How to do it?
P.S. "Photo preview" has no, and (for specific reasons) can't have any button that will "save the photo and put back old content".