I have set my app's orientation to sensor and I am having the app handle all the orientation changes. Everything is working as expected while the app is running.
The problem occurs during the initial launch of the app. If the phone is in portrait mode and a user starts my app, I see my app background appear, then it will do an orientation rotation to landscape view, because I use setRequestedOrientation() within my app. I want the orientation change but I don't want the rotation animation that comes with it. I just want a hard switch between portrait and landscape.
I have tried using overridePendingTransition(0,0) in onCreate, surfaceChanged, or in onConfigurationChanged with no luck. Is there somewhere else I should put this? I believe that using (0,0) should disable the pending animation.
I get the desired effect if I set System Settings->Display->Animations to none. I have tried to set styles for my activity and that did not work either.