title: Cannot invoke getRecords(int) on the array type
body: <p>I cannot seem to get past this error no matter what I try - I've tried removing the int values (as it seems I should) however this only leads to more compiler errors. </p>
  
  <p>Any suggestions?</p>
  
  <pre><code> void processIntent(Intent intent) {
          Parcelable[] rawMsgs = intent.getParcelableArrayExtra(
                  NfcAdapter.EXTRA_NDEF_MESSAGES);
      // only one message sent during the beam
      NdefMessage[] msg =  new NdefMessage[rawMsgs.length];
      for (int i = 0; i &lt; msg.length; i++) {
          msg[i] = (NdefMessage) rawMsgs[i];
          // record 0 contains the MIME type, record 1 is the AAR, if present
          beamMsg.setText(new String(msg.getRecords(1).getPayload()));
          beamMsg2.setText(new String(msg.getRecords(1).getPayload()));
      }}
  </code></pre>