Detecting device orientation change using android:screenOrientation
Is there a way to detect device orientation events or at least to get the current device orientation while using android:screenOrientation in the manifest ? I mean device orientation not application orientation. My problem is I really want to keep my application in portait mode (it's a web view) but I want to handle orientation change myself in my app. When android:screenOrientation is setted, orientation getted by methods is always the application orientation, not the device orientation. Regards, Gaëtan Yo can use the acelerometer to detect the device orientation. I know, it's more hard but I