I want to show internet status in a message with the help of toast using broadcast receiver.when user turn on mobile data or wifi then message should be show that wifi enabled or mobile data enabled with the help of toast using a broadcast receiver and when user turn off the mobile data or wifi then message should be show with the help of toast that no internet connection..
I use this code but this is not working properly..please suggest me for this scenario