Code example for NfcAdapter

Methods: enableForegroundDispatch

0
 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        if (mNfcAdapter != null) {
            mNfcAdapter.enableForegroundDispatch(this, mPendingIntent, null, mTechLists);
        } 
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        if (mNfcAdapter != null) {
            mNfcAdapter.disableForegroundDispatch(this);
        } 
    } 
 
    public void onSupportedCardsClick(View view) {
        startActivity(new Intent(this, SupportedCardsActivity.class));
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE