Implement monitor network status and onNetworkStatusChanged.