Code example for MifareClassic

Methods: connect

0
    /** 
     * Connect the reader to the tag. 
     */ 
    public void connect() { 
        try { 
            mMFC.connect();
        } catch (IOException e) {
            Log.d(LOG_TAG, "Error while connecting to tag.");
        } 
    } 
 
    /** 
     * Close the connection between reader an tag. 
     */ 
    public void close() { 
        try { 
            mMFC.close();
        } 
        catch (IOException e) {
            Log.d(LOG_TAG, "Error on closing tag.");
        }