static public boolean contextHasStatusListener ( Context context ) { StatusManager sm = context . getStatusManager ( ) ; if ( sm == null ) return false ; List < StatusListener > listeners = sm . getCopyOfStatusListenerList ( ) ; if ( listeners == null || listeners . size ( ) == 0 ) return false ; else return true ; }
Returns true if the StatusManager associated with the context passed as parameter has one or more StatusListener instances registered . Returns false otherwise .