Search code examples
androidbroadcastreceiverlogcat

How log broadcast in logcat


I am trying to find which broadcast is being sent on language change when user changes language in the settings.

How do I log this in my console. I have a lot of logs popping up and can't seem to get it. Is there a way to log that?

THanks!


Solution

  • I am trying to find which broadcast is being sent on language change when user changes language in the settings.

    You are probably looking for ACTION_LOCALE_CHANGED.

    How do I log this in my console

    Create a BroadcastReceiver that listens for this broadcast, and have it log a message to LogCat, using the Log class, from its onReceive() method.