Android : Simulate NFC / RFID read and write

Hi,
I’m using Appium to automate the test of an Hybrid Mobile application (Sencha Touch / Cordova). The main target is actually Android and it’s using NFC reading and writing. For develop, we are using a plugin, so writing could be handled but how to simulate the presentation of the tag ?

Is there a example of Android code that may do the trick but how can I simulate it with appium ?

    final Intent intent = new Intent(NfcAdapter.ACTION_TAG_DISCOVERED);
    NdefMessage[] messages = new NdefMessage[1];
    messages[0] = creerMessage(creerRecord("Simulation d'une réception de Tag"));
    intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, messages);
    startActivity(intent);​

We are using the php-client bindings.

Thanks for any help !

PS : The code example comes from : http://sberfini.developpez.com/tutoriaux/android/nfc/

I’m still looking for any solutions … anu help will be appriciated :wink:

Another solution could be to be able to send a Android System Event like "android.nfc.action.TECH_DISCOVERED
"