在android 2.0的平台上,如果你使用了强制语言转换,你会看到屏幕在不断的闪烁。因为这个Activity在不断的执行onCreate();在Logcat上你 也会看到如下错误:"something wrong here, didn't expect * to be resumed android".
解决办法是:
在manifest 中添加android:configChanges=”locale”这个属性。
[xml]<activity android:name=”.Main” android:configChanges=”locale” android:label=”@string/app_name” />[/xml]
低于2.0的sdk没有这个问题。
http://almondmendoza.com/2009/01/28/force-localize-an-application-on-android/

更多相关文章

  1. Android开发中布局属性的使用汇总
  2. android学习——EditText的属性
  3. Android EditText通过imeOptions属性控制软键盘的回车键变化:回车
  4. android:installLocation这个属性
  5. Android ListView几个特别的属性
  6. Android屏幕常亮防息屏
  7. Android 属性动画的原理分析

随机推荐

  1. Android核心分析(20)----Android应用程序
  2. Android(安卓)RelativeLayout 属性
  3. 移植 android, touch screen 不能正常工
  4. Android磁盘管理-系统源码分析(1)
  5. Android画图之Matrix(二)
  6. Android—— 4.2 Vold挂载管理_VolumeMan
  7. 教你用电脑从 Google Play 下载 Android(
  8. Android(安卓)- AndroidManifest.xml 相
  9. Android(安卓)移植到 C#
  10. Android适配全攻略