Landscape and portrait mode for android application
<p>I want to create my android application for both landscape and portrait mode.</p>

<p>I have created two folder layout and layout-land and defined two xml for each activity.</p>

<p>All the activities are working fine.</p>

<p>In all the activities it automatically adjust the rotation but in one activity i have used onconfigurationchange method.</p>

<p>Now my one more activity is creating problem.i have implemented google map and called two threads in that activity.Threads call an API which fetch data from server.</p>

<p>On starting its working well but after 8 or 10 orientation application gets crashed.Please someone help me to resolve this.</p>
