Network tool issue

I need help regarding Network tool. I want to know internet connection ( connected or not) on network changed. I am unable to do this, I tried different method, but not working. Only “is connected” working.If you know, how to do please help me.
Here is my block:

Here is return value :

Here is test apk:
internet_connectin (1).apk (5.6 MB)


I’ll look into the project and get back to you.