title: Can I prevent Host Card Emulation service from being triggered by select AID?
body: <p>I have an Android app with a service registered to Android beam and a service registered to host card emulation. I want to decide when to enable/disable the HCE service in the code. 
  The HCE service in the manifest looks like this -</p>
  
  <pre><code>&lt;service
          android:name="com.bimo.verifonewallet.service.MyHostApduService"
          android:exported="true"
          android:permission="android.permission.BIND_NFC_SERVICE" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.nfc.cardemulation.host_apdu_service"
              android:resource="@xml/apduservice" /&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>In fact, when the smartphone receives a select AID command (with the services AID), the service is triggered and the function of the service onCreate() is executed and after the transaction is finished, the function onDestroy() is invoked.</p>
  
  <p>Therefore when I do startService() and stopService() from the main activity it has no effect.</p>
  
  <p>Can I control if the service be invoked or not?</p>