Code example for NfcAdapter

Methods: setNdefPushMessageCallbacksetOnNdefPushCompleteCallback

		if(mNfcAdapter == null){
			Log.d("TAG", "nfc adapter is null");
			// Register callback to set NDEF message 
			mNfcAdapter.setNdefPushMessageCallback(this, activity);
            // Register callback to listen for message-sent success 
            mNfcAdapter.setOnNdefPushCompleteCallback(this, activity);
	public void setUI(TextView tv){
		mTv = tv;
	public NdefMessage createNdefMessage(NfcEvent event) {
Stop searching for code, let great code find you!  Add Codota to your java IDE