void addNetworkReachabilityListener ( NetworkReachabilityListener listener ) { synchronized ( listeners ) { listeners . add ( listener ) ; if ( listeners . size ( ) == 1 ) { startListening ( ) ; } } }
Add Network Reachability Listener