2

My application supports portrait mode only including the upside down view. Hence I've got the following in the menifest:

android:screenOrientation="sensorPortait"

Also the following to capture orientation change events:

android:configChanges="orientation|keyboardHidden"

But onConfigurationChanged event is not fired with portrait only supported application.

I need to catch the event when the application changes orientation from normal portrait to reverse portrait. Any idea?

StarDust
  • 846
  • 1
  • 13
  • 26
  • there is a typo in "sensorPort(r)ait". If you copied and pasted from your source, then I would try again. – sschrass Aug 24 '12 at 08:41
  • Actually there is no 'r'. It's android:screenOrientation="sensorPortait" Copy-pasted from my source. – StarDust Aug 24 '12 at 08:44
  • lol, http://stackoverflow.com/questions/7964848/sensorportait-typo :) nvm. – sschrass Aug 24 '12 at 08:45
  • I see. Anyway, it says it doesn't matter. My application also works alright (view changes from normal to reverse and vice-versa on device orientation change). Problem is event is not fired. – StarDust Aug 24 '12 at 08:54
  • there was a bug which was fixed in sdk 15. dumb google :P – Akshat Jan 11 '13 at 05:23

0 Answers0