Java Code Examples for android.content.Intent.ACTION_LOCALE_CHANGED

The following are Jave code examples for showing how to use ACTION_LOCALE_CHANGED of the android.content.Intent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: decoy   File: NimApplication.java   View Source Code Vote up 6 votes
private void registerLocaleReceiver(boolean register) {
    if (register) {
        updateLocale();
        IntentFilter filter = new IntentFilter(Intent.ACTION_LOCALE_CHANGED);
        registerReceiver(localeReceiver, filter);
    } else {
        unregisterReceiver(localeReceiver);
    }
}