title: Android child activity and orientation lock
body: <p>I've done quite a bit of searching and trial/error testing in trying to get my application fixed in portrait mode however I'm stumped on this one.</p>
  
  <p>Background: This application has a main activity which shows static images with various transition effects. It uses a sub activity to show a MediaPlayer because the SurfaceView (required to show the movie clip) cripples the display performance of the still image transitions. </p>
  
  <p>Both activities are locked in portrait mode and this seems to work pretty well for the most part. My issue is when the child activity finishes and I physically have the device in landscape position it temporarily switches to landscape mode then back into portrait mode. In doing so I see the arrows on the screen, etc, and I don't want this.</p>
  
  <p>Here's dump from logcat:</p>
  
  <p>D/cursor  ( 1357): cursor_rotate 0  <br>
  I/WindowManagerService( 1357): Setting rotation to 0, animFlags=1  <br>
  I/ActivityManager( 1357): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2 layout=35 uiMode=17 seq=1726}  <br>
  <strong>D/main_activity( 6851): onActivityResult: 0</strong>  <br>
  <strong>D/child_activity( 6851): surfaceDestroyed called</strong>  <br>
  D/cursor  ( 1357): cursor_rotate 3  <br>
  I/WindowManagerService( 1357): Setting rotation to 3, animFlags=1  <br>
  I/ActivityManager( 1357): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1 layout=35 uiMode=17 seq=1727}  <br>
  D/StatusBarPolicy( 1357): <strong><em></strong> ro.wmt.ui.portrait.hide.capbtn = 1  <br>
  D/StatusBarPolicy( 1357): <strong></em></strong> wm.getRotation = 3  <br>
  D/StatusBarPolicy( 1357): <strong><em></strong> ro.wmt.ui.portrait.hide.capbtn = 1  <br>
  D/StatusBarPolicy( 1357): <strong></em></strong> wm.getRotation = 3  <br></p>
  
  <p>The only two lines I want to see are in bold, everything else I want to eliminate. Occasionally, the switch is seamless depending on timing so I'm guessing there's some sort of race condition?</p>