0

We are facing the problem of detecting a SIM change in Android without waiting for the phone to restart. Is there a notification or event that we can receive? How can it be solved?

Elletlar
  • 3,136
  • 7
  • 32
  • 38

1 Answers1

0

You'll want to use Android's Broadcast Receiver framework to monitor for the android.intent.action.SIM_STATE_CHANGED intent action fired by the system.

Check this example and this SO question for more information.

Devon Katz
  • 246
  • 1
  • 3