Code example for NfcAdapter

Methods: disableForegroundDispatch

0
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        if (mNfcAdapter != null) {
            mNfcAdapter.disableForegroundDispatch(this);
        } 
    } 
 
    public void onSupportedCardsClick(View view) {
        startActivity(new Intent(this, SupportedCardsActivity.class));
    } 
 
    public void onHistoryClick(View view) {
        startActivity(new Intent(this, CardsActivity.class));
    } 
 
    @Override 
    public boolean onCreateOptionsMenu (Menu menu) {
        getSupportMenuInflater().inflate(R.menu.main_menu, menu);
Experience pair programming with AI  Get Codota for Java