src/com/example/ant_simple_test/Activity_AsyncScanSampler.java
/**
     * Requests access to the given search result.
     * @param asyncScanResultDeviceInfo The search result to attempt to connect to.
     */
Requests access to the given search result.
@param asyncScanResultDeviceInfo The search result to attempt to connect to.
Requests access to the given search result . @param asyncScanResultDeviceInfo The search result to attempt to connect to .
protected void requestConnectToResult(final AsyncScanResultDeviceInfo asyncScanResultDeviceInfo)
    {
        runOnUiThread(new Runnable()
                {
                    public void run()
                    {
                        mTextView_Status.setText("Connecting to " + asyncScanResultDeviceInfo.getDeviceDisplayName());
                        releaseHandle = AntPlusBikeSpeedDistancePcc.requestAccess(
                            getApplicationContext(),
                            asyncScanResultDeviceInfo.getAntDeviceNumber(), 
                            0, 
                            true,
                            base_IPluginAccessResultReceiver, 
                            base_IDeviceStateChangeReceiver
                        );
                        /* The following code didn't work
  			              releaseHandle = antScanCtrl.requestDeviceAccess(
  			                  asyncScanResultDeviceInfo,
  			                  base_IPluginAccessResultReceiver, 
  			                  base_IDeviceStateChangeReceiver
  			              );
                  	    */
                    }
                });
    }
protected void requestConnectToResult ( final AsyncScanResultDeviceInfo asyncScanResultDeviceInfo ) { runOnUiThread ( new Runnable ( ) { public void run ( ) { mTextView_Status . setText ( "Connecting to " + asyncScanResultDeviceInfo . getDeviceDisplayName ( ) ) ; releaseHandle = AntPlusBikeSpeedDistancePcc . requestAccess ( getApplicationContext ( ) , asyncScanResultDeviceInfo . getAntDeviceNumber ( ) , 0 , true , base_IPluginAccessResultReceiver , base_IDeviceStateChangeReceiver ) ; /* The following code didn't work
  			              releaseHandle = antScanCtrl.requestDeviceAccess(
  			                  asyncScanResultDeviceInfo,
  			                  base_IPluginAccessResultReceiver, 
  			                  base_IDeviceStateChangeReceiver
  			              );
                  	    */ } } ) ; }
Requests access to the given search result.
Requests access to the given search result .
//Inform the user we are connecting