I have an app that has been locked down to "Reverse Portrait" by having every activity specified as reverse portrait in the manifest. That is because I intended to demonstrate this app at a trade show using a connected HDMI TV screen that was mounted vertically. Everything works fine that way but for one anomaly. There are times when I launch another activity and that activity launches a third activity. From that third activity I return using finish() after setting a return code. In the second activity I check the return code in the callback and call finish() on the second activity. That takes me all the way back to the first activity. That also works fine. But here is the strange part. When a HDMI TV is connected and I try to exit from the third activity, the screen temporarily (for about one second) rotates to landscape and goes black. Then it rotates back to reverse portrait and shows the first activity as expected. But if HDMI is not connected then the transition back to the first activity is immediate without any extra screen rotations. And here is another clue. I have been able to deduce that when the extra screen rotation takes place the first activity also goes through its complete lifecycle - destroy and re-create. But when the screen does not rotate like that the first activity remains in memory - merely stopped and started again. Now I realize that any activity can be destroyed and re-created by the OS any time it is not actively visible. But I suspect that the re-creating the stopped activity has something to do with the temporary screen rotation. It is not a big deal, but it is a nuisance at the trade show when I have to explain to the audience why they see these extra screen rotations when I am demonstrating my app on the TV screen.
The device is a Acer Iconia Table, Android 3.2. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

