This app uses 2 ways to implement BroadcastReceiver in your projects, for this demonstration we use the Intent for load detection on your device (ACTION_POWER_CONNECTED) and the internet connection detection (CONNECTIVITY_ACTION).
Esta app utiliza 2 maneras para implementar BroadcastReceiver en sus proyectos, para esta demostración se emplea el Intent para detección de carga en su dispositivo (ACTION_POWER_CONNECTED) y la detección de conexión a internet (CONNECTIVITY_ACTION).
You can see that the device is not charging and is connected to the internet. Se puede visualizar que el dispositivo no esta cargando y esta conectado a internet.
You can see that the device is charging and is not connected to the Internet. Se puede visualizar que el dispositivo esta cargando y no esta conectado a internet.