Relative Content

Tag Archive for androidkotlinbroadcastreceiver

How to detect SIM state change in Android

I am trying to detect changes in SIM state (in dual sim scenario – single SIM active/inactive, both SIM active/inactive) from Broadcast receiver in Android.
I googled to find solution, but they are outdated, for instance, one solution was to register broadcast receiver with android.intent.action.SIM_STATE_CHANGED, which seems no more supported.