在Android API级别10中,NfcAdapter有一个方法enableForegroundNdefPush(),
,描述是
You must explicitly call this method every time the activity is resumed,
and you must call disableForegroundNdefPush(Activity) before your activity
completes onPause().
所以enableForegroundNdefPush()只能调用onResume()?
但是我想在按下按钮时发送NdefMessage
我该怎么办?