Code example for NfcAdapter

Methods: disableForegroundDispatch

0
			nfc.enableForegroundDispatch(activity, intent, intentFilters, techLists);
		} 
	} 
 
	public void disableForeground() { 
		nfc.disableForegroundDispatch(activity);
	} 
 
	public NfcAdapter getNfc() {
	    return nfc;
	} 
 
	/** 
	 * Returns an instanceof a this class IF NFC privileges have been set. 
	 * @param moSync 
	 * @return 
	 */ 
	public static MoSyncNFCForegroundUtil create(Activity activity) {
		try { 
		if (MoSyncNFC.nfcPermissionsSet(activity)) {
		    NfcAdapter nfc = NfcAdapter.getDefaultAdapter(activity.getApplicationContext());