NFC我可以通过按下按钮发送NdefMessage吗?

时间:2012-09-06 10:36:49

标签: android nfc

在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

我该怎么办?

0 个答案:

没有答案