Monday, February 4, 2013

Rotating device loose data

When a user types into the editText  or loads data from database and rotates the phone the text/data is lost.To overcome this add following lines in manifest in your activity

<activity
            android:name=".Activity"
            android:configChanges="orientation"
            android:label="@string/name" />


No comments:

Post a Comment