Android Question how to implement callback in B4a

Hengki

Member
Licensed User
Longtime User
hello B4a master,
I got an assignment from school to make Nfc Reader, I have been looking for samples in b4a a few days but can't find it, can I help you how to convert java (sample) to b4a to be used in b4a.

private NfcAdapter.ReaderCallback mReaderCallback = new NfcAdapter.ReaderCallback () {
public void onTagDiscovered (Tag tags) {
}
};

Thank you for your help, we appreciate it
 

Hengki

Member
Licensed User
Longtime User
Hi udg,
thank you very much, and 1 more question, can you help me convert to our small program (java) to B4A (use javaobject). I'm still confused how to convert it to b4a

private NfcAdapter.ReaderCallback mReaderCallback = new NfcAdapter.ReaderCallback () {
public void onTagDiscovered (Tag tags) {
mTag = tags;
}
};

Thank you
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Sorry, my Java language knowledge is very basic. Others will help you on this.
Anyway, the example in the link has everything you need to read a TAG.
 
Upvote 0
Top