History log of /frameworks/base/core/java/android/nfc/NdefRecord.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
32ac1e142c4a0f3529c49cde433ae5e22f84b1d6 06-Sep-2012 Martijn Coenen <maco@google.com> Fix NPE in NdefRecord parser.

Malformed Uri tags could cause this crash.

Bug: 7116323
Change-Id: I979d1512058f351df32dbd972b6ec5c108202da5
/frameworks/base/core/java/android/nfc/NdefRecord.java
a45746efadd11bb7dfab026fb3c81a25fae74ca4 19-Jul-2012 Jeff Smith <whydoubt@yahoo.com> Fix several cases of broken droiddoc syntax
external issue 35214

patch contributed by Jeff Smith <whydoubt@yahoo.com>

Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
/frameworks/base/core/java/android/nfc/NdefRecord.java
abc43ddd8ae098de7a56afc55909f904cd933016 10-May-2012 Jesse Wilson <jessewilson@google.com> Rename Uri.normalize() to Uri.normalizeScheme().

Change-Id: I67839656c7c1c16a5376c9894d699d2bad3c7a5c
/frameworks/base/core/java/android/nfc/NdefRecord.java
c97a552023c3c71079b39092e80c9b44f25a789b 05-Jan-2012 Nick Pelly <npelly@google.com> Improve NDEF API's

o Add NdefRecord.toMimeType()
Maps the record to a MIME type
o Add NdefRecord.toUri()
Maps the record to a URI
o Add hidden NfcAdapter.dispatch()
Helps test the dispatch path.
o Modify createMime(), createUri() and createExternal():
Do not try and strictly follow RFC requirements for URI or MIME content
types. This just leads to heartbreak - the RFC requirements are too strict.
For example RFC1341 forbids the use of '.' in a MIME type, however this is in
common use in types such as "application/vnd.companyname". I think the best
approach is to only remove 'obvious' whitespace issues, and to convert
uppercase to lowercase as per Android guidelines.

Change-Id: Id686f5f3b05b2dceafad48e1cfcbdb2b3890b854
/frameworks/base/core/java/android/nfc/NdefRecord.java
a356bf1cd81614a94ef6c720998792480ade4c84 14-Dec-2011 Nick Pelly <npelly@google.com> Rewrite NDEF parsing in Java, clean-up API.

o Lots of documentation fixes.
o Add NdefMessage(NdefRecord ... records) ctor
o Add NdefRecord.createMime()
o Add NdefRecord.createExternal()
o Add toString(), equals() and hashCode() implementations
o Deprecate NdefRecord(byte[]) and NdefRecord.toByteArray()
o Remove framework dependency on libnfc_ndef.so
o Remove NfcAdapter.getDefaultAdapter(), its been deprecated a while

next step:
o Attempt to move NdefMessage -> Intent conversion into NDEF, and
make it CTS tested. This will ensure consistent NDEF -> Intent
mapping across all Android devices.

Change-Id: Ifed4910caa9a1d6bad32dbf0a507ab22bca35e22
/frameworks/base/core/java/android/nfc/NdefRecord.java
82328bfd40008d85917cc01a1b2eb8eed1f23ec4 30-Aug-2011 Nick Pelly <npelly@google.com> NFC API updates.

o NfcAdapter.set*(): enforce at least one activity is provided at compile time.
o Unhide and update javadoc for some API's scheduled for ICS release.

Change-Id: I2bf4ea101442dcdeb359be26d3869f82e6e3748b
/frameworks/base/core/java/android/nfc/NdefRecord.java
a37fcbce59c8a746f641936b4de99867dbfabac9 05-Aug-2011 Martijn Coenen <maco@google.com> Add Android app RTD type and convenience method.

Change-Id: I4e6351c86a0062efc9a9f90e75c04f6520e50c4f
/frameworks/base/core/java/android/nfc/NdefRecord.java
67671874dcba734fc78d39573aa68c0cbe8e2b24 14-Jul-2011 Ben Dodson <bjdodson@google.com> unhide public apis

Change-Id: I3bbe0e7c1e135a4654f63c34c024d7aa10341279
/frameworks/base/core/java/android/nfc/NdefRecord.java
1584af9d4e96282f0b4f4e8e647fd6a6d18594fb 30-Jun-2011 Jeff Hamilton <jham@android.com> Add a string based createUri().

Change-Id: Ie26977684d0f48201daa605b8b6057ab9afb370e
/frameworks/base/core/java/android/nfc/NdefRecord.java
3da3a4582c0793f59a1fd897a992e5e4fd57b6ca 17-Jun-2011 Ben Dodson <bjdodson@google.com> Parser for uri records

Change-Id: I4b71ba7938aa83a1c6344e3da72a9495bc1e9a16
/frameworks/base/core/java/android/nfc/NdefRecord.java
e0180d053e956ac32c2a5ec60272927755f17251 08-Jun-2011 Nick Pelly <npelly@google.com> Move NDEF URI helper method into android.nfc.NfcRecord

Change-Id: Ia044e45cbe2cd06c4844d15a57f1c1f392cf65cd
/frameworks/base/core/java/android/nfc/NdefRecord.java
8bede1704717f594a0f924a57ff46f6300347e30 08-Apr-2011 Martijn Coenen <maco@google.com> Fix NdefRecord flags handling.

NdefMessages created from byte arrays set the wrong flags on
NdefRecord: every record had at least FLAG_MB|FLAG_ME set, instead of actually
setting the flags from the byte-stream itself. Fixed by creating an internal
constructor which can take the flags.

Public constructor remains the same, as we don't want to bother application
writers with these flags - they can be inferred from the context in which the
record is used. Getting the flags is not a public operation on an NdefRecord
either. However, applications can get the byte[] representation and it
is reasonable for them to expect the flags byte to be set correctly.

Change-Id: Ic32411688dd092c55b1aeccbba9635792e15a671
/frameworks/base/core/java/android/nfc/NdefRecord.java
11b075e218b9921a953eeebe73fcd1a8a81f764b 28-Oct-2010 Nick Pelly <npelly@google.com> Hide some NFC API's.

We are leaving enough API so that you can see when any Tag is discovered,
get its ID, and get its NDEF messages.

But for advanced use - creating tag connections and writing messages - we have
2 problems. Firstly a lot of the code is untested
(RawTagConnection.transceive()), or in some cases known not to work
(NdefTagConnection.write()). Secondly, there is still debate about how to
best expose information about Tags.

The set of data/methods exposed for a Tag changes completely depending on the
tag technology. There may be multiple sets of technology implemented in a
single tag. Tag A may have technology X and Y, Tag B may have technology Y
and Z. Furthermore, some NFC controllers will be not be able to use all
technologies, and so Android Device 1 may see technology X and Y on Tag A but
Android device 2 may only see technology X. So we have a pretty challenging
set of constraints to work under, and we are not convinced the current Tag and
NdefTag class is the best approach going forwards.

The Tag application should be able to remain unbundled, since it just needs to
get incoming NDEF Messages.

Change-Id: Ic09f094f33794e10f8d730fffe011c9a5957e0ac
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java
da83f513ca661cd2bb1e6f1c8b64b716205bae48 22-Oct-2010 Jeff Hamilton <jham@android.com> Unhide some NFC APIs that are required for the Tag app.

Change-Id: Ic64e00476132dbf4644de5c465e06fe11a264508
/frameworks/base/core/java/android/nfc/NdefRecord.java
dd7341f775ca4d86091f4106d6dfef9214073a7d 18-Oct-2010 Sylvain Fonteneau <sylvain.fonteneau@trusted-logic.com> Added missing implementation for NdefRecord.

Implemented constructor using a byte array to parse.
Added missing exception in method declaration, leading to update api/current.xml

Change-Id: I2660484aef1225e90c2f32a572041a2c3aecf288
/frameworks/base/core/java/android/nfc/NdefRecord.java
6df23609d4c1f257b11d67b965e5b63cbdf26fcd 16-Oct-2010 Nick Kralevich <nnk@google.com> range checking for tnf

Change-Id: Ie94acd598d3b8b349ffa98cef0f64ef8fa9f9612
/frameworks/base/core/java/android/nfc/NdefRecord.java
c9f7890a203a013646650a695157277df81b6a17 15-Oct-2010 Scott Main <smain@google.com> Revise some javadocs for NFC; add package description

Change-Id: I60223e2ad24af98b3b16a74960365185096ae614
/frameworks/base/core/java/android/nfc/NdefRecord.java
590b73bc5b8e5f7b59bff1d9264a52388a5162e6 12-Oct-2010 Nick Pelly <npelly@google.com> NFC API revision round 2.

- Add the second half of the new NFC API: NfcAdapter, Tag, NdefTag,
RawTagConnection, NdefTagConnection.
- Add implementations for all of the new NFC API.

Change-Id: I8da9fd1d2971ed2c8b76f2a93f207fa9e305b0f6
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java
dc993791fc3cf7a270921f7419b0c6b875bbd92b 04-Oct-2010 Nick Pelly <npelly@google.com> New API stubs: NdefMessage and NdefRecord.

NDEF Messages and NDEF Record data classes.

Change-Id: I9b7114773281b0eb9680f595c95ac79943d2903b
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/nfc/NdefRecord.java