首页 极刻 圈子 教程 开源
极客社区
写文章 发极刻 建圈子 发项目
标签 screensize 相关标签 activity android androidmanifest app attribute

Phonegap app crashes when switched orientation even with AndroidManifest changes

In your case the attribute android:configChanges="orientation|screenSize|keyboardHidden"should go to the first <activity

爱技术爱生活TAO 2013-08-12 13:37:02

android屏幕旋转时,Activity不重新调用onCreate的方法

当手机转屏时,Activity的onDestroy和onCreate方法会被调用,为了避免Activity在转屏时销毁:需要修改AndroidManifest.xml,在activity属性中加入: android:configChange

翟浩浩Android 2014-04-02 09:35:54

推荐极客

Blaze Blaze 80407013 80407013 fundebug fundebug 81293313 81293313 87627995 87627995 88916570 88916570 84214254 84214254 86593278 86593278

优质内容社区

首页 文章 极刻 开源 标签 关于我们

© 安科网. All rights reserved.