Code example for NfcAdapter

Methods: setNdefPushMessage

0
	public void onResume() { 
		super.onResume(); 
		 
		 
		//If a NFC connectinon has been made, the URI String within "DATA" is transferred  
		if (nfcAdapter != null) nfcAdapter.setNdefPushMessage(newNdefMessage(), this); 
		 
	} 
 
	//Pause occurs when devices prepare to "BEAM" 
	@Override 
	public void onPause() { 
		super.onPause(); 
		//Save states between activities 
	} 
 
	 
	public void onStop(){ 
		//Short-Term Data Caching [save states between uses] 
		super.onStop(); 
	}