title: Android: Capturing the return of an activity
body: <p>I have a question regarding launching new activities. It boils down to this.
  I have 3 tabs on a view</p>
  
  <pre><code>A) contains gMap activity
   B) camera activity
   C) some random text fields.
  </code></pre>
  
  <p>Requirement is that the application runs in Portrait mode. </p>
  
  <p>All 3 tabs work as expected w/ the exception of the Camera Preview Surface (B). It is rotated 90 degrees. They only way to make it correct is to set the app to landscape which throws all my tabs around, and is pretty much unworkable.</p>
  
  <p>My solution is this : replace </p>
  
  <p>my camera activity with a regular activity that is empty w/ the exception of </p>
  
  <pre><code>Intent i = new Intent(this,CameraActivity.class);
      startActivity(i);
  </code></pre>
  
  <p>This launches my CameraActivity. And that works fine. I had to do a linear layout and include 3 images that look like real tabs, so I can try and mimic the operation of the tabs while rotating the screen to landscape and keep the visuals as portrait.
  The user can click one of the images(buttons) to display the next tab. This is my issue. It should exit my 'camera activity' returning to the 'blank activity' in a tab, where it should be interpreted to click the desiered tab from my image. </p>
  
  <p>The main thing is, when it returns, it returns to a blank (black) page under a tab (because it is 'empty'). How can I capture the return event back to the page that called the activity, and then see what action they performed? </p>
  
  <p>I can set an onclicklistener where I can respond to the fake tabs (images) being clicked to exit out of the camera activity. On exit, the tab should update so that is where you return. any Suggestions?</p>
  
  <p>Thanks,</p>