title: Android emulate NFC with Smartphone as reader
body: <p>I'm looking for a way to use my phone instead of a nfc card. To do that I would create an Android App.<br>
  I live in Switzerland and the national rail company uses a nfc card called &quot;Swisspass&quot; to load annual tickets, ... on it for conductors to read it and look if the ticket is valid. A year ago they issued a new function called &quot;Swisspass Mobile&quot; where in your app you can display a QR code for the conductors to scan. You can also add your pass to Google Pay as a loyalty program card. If you do so it shows you a url which looks like that:</p>
  <blockquote>
  <p>HTTP://1SP.CH?S=SXXXXXXXXXXX<br></p>
  </blockquote>
  <p>Where the SXXXXXXXXXXX is your member id. The problem with the QR code is that it takes way longer for the conductor to check and it is in general difficult to do so, as the train is constantly moving. If you take this url and generate a QR code form it in any other app it works as well.<br>
  <br>
  So my thought was to use my phone to send this URL to the smartphone the conductor uses to make their and my life easier. I had a look at this<br>
  <a href="https://developer.android.com/guide/topics/connectivity/nfc/hce" rel="nofollow noreferrer">https://developer.android.com/guide/topics/connectivity/nfc/hce</a><br>
  but I can't really figure out what AID I would have to use or if I even need to use HCE in that case as it's not a NFC tag reader but a smartphone. Do you know any more information? Could I use peer to peer or just send the url by nfc to the conductors smartphone? How would I do that?
  Thanks a lot in advance</p>