If Android detects change in your phone configuration, it destroys your phone current orientation view and try to reload it in new orientation view. Between these process, one of the two things will happened : Either the new oriented screen will be loaded or the application will be forced closed. This issue can be fixed, you have to follow bellow steps :
Write this line of code in manifest file for your activity :
android:configChanges="keyboardHidden|orientation"
Your complete activity code looks like this :
<activity
android:name=".PoiDetailActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Light.NoTitleBar" >
</activity>
No comments:
Post a Comment