Skip to content Skip to sidebar Skip to footer

Force "locale" In Application

I want to rotate my phone and keep the locale. I have folders values, values-en and values-hr. In every activity I have android:configChanges='keyboardHidden|orientation|locale' a

Solution 1:

I simply removed "if's" and everything is working now. Yes, it is a little "bulky" every time to "re-force" a locale but I couldn't find another way.

My solution is a little bit different, I just "re-force" it on onCreate and onConfigChange - not every 100ms or so and on Desire (2.2) it's working flawlessly.

@Austyn

Yes, it's pretty much the same question but I though is there another solution except "100ms forcing".

@Mayra

Users wanna have their mother-tongue (HR) but it's not supported in (current) mobile phones so this is the only way - to force it =/

Post a Comment for "Force "locale" In Application"