In my application i want to be notified in MainActivity when the Network status changes. This means, i want my app to know when there is no wifi connection and when there is wifi connection.
This code is easy. I have a doubt regarding BroadcastReceiver. I have created a class that extends BroadcastReceiver. This class can successfully see when there is wifi and when there is not.
My question is, how can i pass this information to the MainActivity so that my app can automatically send its recordings when Wi-Fi is detected?
Thanks