w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android :android:configChanges value for Font Style change in Samsung Device

I don't think this is possible, unfortunately. This seems to be using a different mechanism instead of configuration changes.

  1. Setting up a service to listen for android.intent.action.CONFIGURATION_CHANGED does not receive an Intent when a new font is selected in the dialog (but it does when the font size is changed, for example).
  2. If it was handled as a configuration change, then the activities would be restarted, but not the app itself, as it's the case here.
  3. Even if it were, the android:configChanges attribute does not accept arbitrary values, but only those listed in the documentation. So there would be no way to handle custom configuration changes.

If I had to guess, I'd say that Samsung's custom UI forcibly restarts all applications whenever the font is changed.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.