I found many weak points of Android NFC:
ndef.connect()
cannot work for NFC phone itself, only for tag. It's no way to check the connection status when other phone close to the back.
NDEF cannot interactively send/receive in two way. On the device, tap the screen to raise a message send, and then disconnected, no way to get back data immediately.
NFC api does NOT support card mode. This is so weakness point. There's so many situations need the Phone act as RFID card. Among of them, sometimes no need security element. Once the UID available, server-end can do authentication and rest of things.
I am asking for how to check the connection status after NDEF message has been sent or received complete ?
You can register your app's activity to receive a callback when NDEF push via Android Beam is completed using
NfcAdapter.setOnNdefPushCompleteCallback()
.