diff --git a/api/current.xml b/api/current.xml index 0df5d3f6ecb7e..11b510492e682 100644 --- a/api/current.xml +++ b/api/current.xml @@ -99804,6 +99804,18 @@ deprecated="not deprecated" visibility="public" > + + + + + + @@ -99829,6 +99841,17 @@ visibility="public" > + + + + * Validation is performed to make sure the Record format headers are valid, * and the ID + TYPE + PAYLOAD fields are of the correct size. * @throws FormatException - * - * @hide */ public NdefMessage(byte[] data) throws FormatException { mRecords = null; // stop compiler complaints about final field @@ -69,10 +66,7 @@ public class NdefMessage implements Parcelable { } /** - * Get a byte array representation of this NDEF message. - * - * @return byte array - * @hide + * Returns a byte array representation of this entire NDEF message. */ public byte[] toByteArray() { //TODO(nxp): do not return null diff --git a/core/java/android/nfc/NdefRecord.java b/core/java/android/nfc/NdefRecord.java index edc5ab921f1d9..557e44da6f61d 100644 --- a/core/java/android/nfc/NdefRecord.java +++ b/core/java/android/nfc/NdefRecord.java @@ -247,8 +247,7 @@ public class NdefRecord implements Parcelable { } /** - * Return this NDEF Record as a byte array. - * @hide + * Returns this entire NDEF Record as a byte array. */ public byte[] toByteArray() { return generate(mFlags, mTnf, mType, mId, mPayload);