In JNI method I use call to Java objects to get locale settings.
My JNI call is similar to Locale.getDefault() that I used to get it.
Will application be notified about system locale changes?
So, typical usecase:
- Run my application.
- In native code get locale from Locale.getDefault();
- Change current system locale by settings menu on device.
- In native code get locale from Locale.getDefault();
Will I get actual information about current locale in step 4?
Will I get actual information about current locale in step 4?
Yes, I will.
But there is one issue:
If main activity blocked by native call , locale information will not change till the main activity not recive ACTION_LOCALE_CHANGED.