I use the processCommandApdu()
method in a subclass of HostApduService
to react on NFC commands. This method gets called on the Android main thread. These commands should be processed and sent over the NFC channel sequentially. Therefore, I want to process them synchronously.
Is there any good way to enforce sequential order without blocking inside of the processCommandApdu()
method?