I have created an App, when my app start its shows a image and I have set ScreenOrientation=”sensor” in manifest.
but when I rotate my device my app crashes.
sometime its shows image in portrait mode or landscape mode.
can anybody please help me.
how can I set orientation of screen according to sensor.
Thanks
your activity in your Manifest file is::
and also stop or intrupted yout thread while completing the work
Main problem is your background Thread is running and when you change orientation the new view is generated and try to access old view so app crashes….