title: Android NFC - Mifare Classic Restore and Transfer not working
body: <p>According to documentation;</p>
  <blockquote>
  <p>Restore: Moves the contents of a block into the internal Transfer
  Buffer</p>
  <p>Transfer: Writes the contents of the internal Transfer Buffer to a
  value block</p>
  </blockquote>
  <p>So want to move some data from x block to y block.</p>
  <img src="https://i.stack.imgur.com/n2hvk.jpg" width="320" height="640">
  <p>According to access conditions, <strong>Sector 3</strong> supports <code>transfer</code> and <code>restore</code>.</p>
  <p><a href="https://i.stack.imgur.com/ebyZo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ebyZo.png" alt="enter image description here" /></a></p>
  <p>Also <strong>Block 12</strong> have a data <code>quickappdemotest</code>. I want to move it from <strong>Block 12</strong> to <strong>Block 13</strong> by using <code>restore</code> and <code>transfer</code> methods but somehow it did not work.</p>
  <pre><code>MifareClassic mfc = MifareClassic.get(tag);
  try {
      mfc.connect();
      boolean authA = mfc.authenticateSectorWithKeyA(3, MifareClassic.KEY_NFC_FORUM);
      if (authA) {
          mfc.restore(12);
          mfc.transfer(13);
      }
      mfc.close();
  } catch (Exception e) {
      Log.d(TAG, &quot;Error: &quot; + e.getMessage());
  }
  </code></pre>
  <p>It does not throw any exception but after method completes, when I checked from the app only <strong>Block 12</strong> have <code>quickapptestdemo</code> data.</p>
  <p>Can anyone give me clue?</p>