Android example to detect change in network connection like wifi connected, mobile data network change.