Code example for NfcAdapter

Methods: isEnabled

0
		mCallback = picker.getNfcActionCallback();
 
		mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
		if (mNfcAdapter == null) {
			mCallback.onNfcNotSupported();
		} else if (mNfcAdapter.isEnabled() == false) {
			mCallback.onNfcDisabled();
		} 
	} 
 
	@Override 
	public void onResume() { 
		super.onResume(); 
		// NfcAdapter#enableForegroundDispatch を設定 
		enableForegroundDispatch(); 
	} 
 
	/** 
	 * Ndef または NdefFormatable を TechListに持つタグだけ反応させる. 
	 */ 
	public void enableForegroundDispatch() {