Code example for MifareClassic

Methods: isConnected

0
    /** 
     * Check if the reader is connected to the tag. 
     * @return True if the reader is connected. False otherwise. 
     */ 
    public boolean isConnected() { 
        return mMFC.isConnected();
    } 
 
    /** 
     * 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.