San Song Daddy

A joyful Christian! A father of a son and 2 daughters!! A husband to a sunshine beauty!!!

Android how to detect/register language/locale change listener/receiver

The easy way is to register a BroadcastReceiver for Intent.ACTION_LOCALE_CHANGED. Example: change your ViewModel data when language/locale changed. public class QASViewModel extends ViewModel { @SuppressLint("StaticFieldLeak") private final FragmentActivity activity; public QASViewModel(@NonNull FragmentActivity activity) { this.activity = activity; setLangReceiver(); } private void