public void bindService ( ) { Log . v ( TAG , "Trying to bind the service" ) ; Context context = this . context . get ( ) ; isBound = false ; if ( context != null && preferredPackage != null ) { isBound = CustomTabsClient . bindCustomTabsService ( context , preferredPackage , this ) ; } Log . v ( TAG , "Bind request result: " + isBound ) ; }
Attempts to bind the Custom Tabs Service to the Context .