1

I have designed the app for handling the Locale change during the app life cycle. The entry in manifest android:configChanges="locale" works well & call the onConfigurationChanged in activity, which handles the locale related code.

But the same logic not working for 4.2 JellyBean devices.

The activity onDestroy is called instead of onConfigurationChanged when locale is changed.

Is this something specific to 4.2 & how to handle this scenario.

Avadhani Y
  • 7,566
  • 19
  • 63
  • 90
AbhayM
  • 41
  • 5
  • Can you add some sample code? I'd be interested to see how you change the locale with android 4.1. Thanks ! – Taiko Mar 24 '14 at 10:05

2 Answers2

0

Unfortunately, Android has filtered out the CHANGE_CONFIGURATION permission on 4.2 for some reason.

You can read more here: Android 4.2 filters out CHANGE_CONFIGURATION permission?

Community
  • 1
  • 1
0

You can find the answer here: onConfigurationchanged is not called over jellybean(4.2.1)

You need to add layoutDirection attribute, example code below:

android:configChanges="locale|layoutDirection"
Community
  • 1
  • 1
codezjx
  • 9,012
  • 5
  • 47
  • 57