0
		NdefMessage ndefMsg = NFCUtil.getIntArrayAsNdef(
				NdefRecord.TNF_MIME_MEDIA, "state/data", "", mGameMatrix,
				DELIMETER);
 
		mNfcAdapter
				.enableForegroundNdefPush(NFCTicTacToeActivity.this, ndefMsg);
 
		mNfcAdapter.enableForegroundDispatch(this, mNfcPendingIntent,
				mNdefExchangeFilters, null);
	} 
 
	private void disableNdefExchangeMode() { 
		mNfcAdapter.disableForegroundNdefPush(this);
		mNfcAdapter.disableForegroundDispatch(this);
	} 
 
	private void enableTagWriteMode() { 
		mWriteMode = true;
		mNfcAdapter.enableForegroundDispatch(this, mNfcPendingIntent,
				mWriteTagFilters, null);
	} 
 
	private void disableTagWriteMode() { 
		mWriteMode = false;
		mNfcAdapter.disableForegroundDispatch(this);
	} 
 
	@Override 
	protected void onNewIntent(Intent intent) {
		// NDEF exchange mode 
Stop searching for code, let great code find you!  Add Codota to your java IDE