Android onCreate() Method called twice when device rotated. (ICS)

后端 未结 3 836
余生分开走
余生分开走 2021-01-14 05:35

I\'m developing on an android tablet application and I have to manage application orientation. I got a problem that every time when I rotate the device onCreate() will be ca

3条回答
  •  走了就别回头了
    2021-01-14 06:32

    If you are targeting an API level > 13 you have to add the screenSize flag as reported in the doc:

      android:configChanges="keyboardHidden|orientation|screenSize"
    

提交回复
热议问题