Code example for MifareClassic

Methods: getBlockCountInSector

0
     * Return the block count in a specific sector. 
     * @param sectorIndex Index of a sector. 
     * @return Block count in given sector. 
     */ 
    public int getBlockCountInSector(int sectorIndex) {
        return mMFC.getBlockCountInSector(sectorIndex);
    } 
 
    /** 
     * 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 {