码迷,mamicode.com
首页 > 移动开发 > 详细

解决android锁屏或解锁后activity重启的问题

时间:2015-02-19 20:45:24      阅读:286      评论:0      收藏:0      [点我收藏+]

标签:

If your target build version is Honeycomb 3.2 (API Level 13) or higher you must put the screenSize flag too, as in:

<activity
    android:configChanges="orientation|screenSize|keyboardHidden"
    android:name="YOUR ACTIVITY NAME">
</activity>

because even with the "orientation" flag you app will be killed and recreated again with every orientation change when your app is the active one, either being visible on screen or hidden by the lock screen. This is because the usable screen size, mainly in tablets, actually changes due to the change in placement of the system action bar.

解决android锁屏或解锁后activity重启的问题

标签:

原文地址:http://www.cnblogs.com/welhzh/p/4296275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!