I have to check the condition when there is no response from server back end as case like when i had connected my android phone to a WiFi,and shows network active in my android phone, but the problem is when WiFi(router) is not connected to any internet service that time i need a toast.
How can i check and make a toast when i don't get any response from server back end ?