This app requires both portrait and landscape orientations. Here I am creating "layout-land" folder in resource folder for landscape orientation.While I am doing orientation activity is taking the XML from "layout-land" but activity is restarting.
So to avoid restarting,in manifest I am using the following permissions:
<android:configChanges="keyboardHidden|orientation|screenSize">
While I am using the above permissions activity is not restarting but it is unable to take the XML from "layout-land" folder.
Here I need:
1. Avoid restarting an activity
2. Making an activity to take the XML from "layout-land" folder.
I am new to android.Please help me in this.Thanks in advance.