android Orientation of screen creating problem
<p>I have created an App, when my app start its shows a image and I have set ScreenOrientation="sensor" in manifest.</p>

<p>but when I rotate my device my app crashes.</p>

<p>sometime its shows image in portrait mode or landscape mode.</p>

<p>can anybody please help me.</p>

<p>how can I set orientation of screen according to sensor.</p>

<p>Thanks</p>
