I want to know if there any listener, like onClickListener
, but for connection to the Internet. I want to start some function, only when there is a new connection to Internet.
Exactly like a Button, that till it is not pressed, it's not start the onClick
.
Does someone know something like that?
Thanks in advance!