Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6218
  • 博文数量: 6
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 50
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-07 21:52
文章分类

全部博文(6)

文章存档

2013年(6)

我的朋友
最近访客

分类: Android平台

2013-05-07 16:32:49

当前的activity切换到后台,切换语言,回到原来的activity,原来的activity不见,出现又一新activity。

原因:没有在AndroidManifest.xml 中申明android:configChanges

android:configChanges

Lists configuration changes that the activity will handle itself. When a configuration change occurs at runtime, the activity is shut down and restarted by default, but declaring a configuration with this attribute will prevent the activity from being restarted. Instead, the activity remains running and its onConfigurationChanged() method is called.

解决在AndroidManifest.xml中申明 android:configChanges="locale"
阅读(1099) | 评论(0) | 转发(0) |
0

上一篇:android oom问题

下一篇:没有了

给主人留下些什么吧!~~