I want to disable the view change on device rotation for the time being. Its giving foreclose error when i rotate the device and starts all over again.
I have used tab activity everywhere.
How should i proceed ?
I want to disable the view change on device rotation for the time being. Its giving foreclose error when i rotate the device and starts all over again.
I have used tab activity everywhere.
How should i proceed ?
In your manifest, you can define which activities you don't want to rotate automatically by setting i.e.
android:screenOrientation="portrait"
You can add this on your manifest:
<activity android:name=".YourActivity"
android:screenOrientation="portrait"
android:label="@string/activity_label"/>
Ger
What you need to set is set the configChanges attribute of the activity in your manifest. This will still allow the user to rotate the 'phone, but tells Anroid not to restart your activity when it does so.