Adding configChanges ="locale" programatically

Posted by chrisonline on Stack Overflow See other posts from Stack Overflow or by chrisonline
Published on 2010-03-29T10:51:16Z Indexed on 2010/03/29 10:53 UTC
Read the original article Hit count: 271

Filed under:
|
|

I use configChanges="locale" on my activities. Without this options in AndroidManifest.xml in 2.x i get flickering screens.

It works in all my activities excepting in the preferences screen i add programatically. I have one Preference Activity --> it works after setting configChanges="locale" to the AndroidManifest.xml.

Inside of the Preference Activity i add programatically a new preferencescreen. For this new PreferenceScreen i dont have an activity in the AndroidManifest.xml! So i cannot add the configChanges="locale" and the screen flickers on 2.x !!

How can i add the attribute configChanges="locale" programatically?

© Stack Overflow or respective owner

Related posts about android

Related posts about locale