public boolean registerService ( SPFServiceDescriptor descriptor ) { String appId = descriptor . getAppIdentifier ( ) ; String serviceName = descriptor . getServiceName ( ) ; for ( String verb : descriptor . getConsumedVerbs ( ) ) { if ( ! registerServiceInternal ( verb , serviceName , appId ) ) { return false ; } Log . v ( TAG , "Registered service as Activity consumer: " + descriptor . getServiceName ( ) ) ; } return true ; }
Registers the capabilities of a service to consume activities . If the descriptor doesn t declare the service as capable of handling activities no action will be performed .