views:

129

answers:

1

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?

A: 

I dont' find a solution to add configChanges="locale" programmatically, but i created a new Pereference Activity and added the configChanges keyword to the Manifest file.

Now it works as it should.

chrisonline