I am trying to make two toasts: one when the device is charging, and one when it`s not.
But the receiver acting crazy, sending many toasts, and crashing the app.
I can not f
The same thing happened to me once and I received the broadcast several times.
This sometimes happens if we register the same broadcast several times and we do not free it by re-registering it.
Make sure you don't call twice to register the broadcast.