NFC Read Tag id


#1

Can anyone help me to read the tag id? Whenever I invoke application i got inbuilt content like this in android studio

var e = document.createEvent(‘Events’);
e.initEvent(‘tag’);
e.tag = {“id”:[4,20,-118,2,90,88,-127],“techTypes”:[“android.nfc.tech.NfcA”,“android.nfc.tech.MifareUltralight”,“android.nfc.tech.NdefFormatable”]};
document.dispatchEvent(e);

but i am not getting these content on any variable. My method is not even invoking