I am currently stuck with my application over getting network change notification. I have a scenario in my app where in if user has no internet connectivity, commands needs to be sent to the server keeps on getting queued and once network is available all the queued commands are sent to the server. Now i want to be notified by the system when network is available.

What i tried.?
Following this post i registered a network changed listener but it works only when user is on that particular screen where i have added the listener. I have lot of screens in my app. Do i need to add network change listener on all the screens. Isn't there a way to just write logic at one place and get notified about network change on all the screens.