Switch to a simpler storage model.
authorJason parks <jparks@google.com>
Tue, 26 Oct 2010 19:42:45 +0000 (14:42 -0500)
committerJason parks <jparks@google.com>
Wed, 27 Oct 2010 20:36:43 +0000 (15:36 -0500)
commit40d9a0cd0a37d184ee737b2d7138a39e4292ce3e
treeac8db186eb6709ec00ed9cb63432445739d118a1
parent3ec19b7456557b9c33d1f91546b967c87438aa8b
Switch to a simpler storage model.

Going back to the previous storage model of where we only store the messages.
We reference records by appending the offset of the record to the end of the
uri.

When a tag is discovered we start the service to save it. A PendingIntent
is created that will resolve to the currently running activity.

Change-Id: I32d1dd70960fdf67129d1707399d667de030ebe5
17 files changed:
AndroidManifest.xml
res/layout/tag_viewer.xml
src/com/android/apps/tag/TagService.java
src/com/android/apps/tag/TagViewer.java
src/com/android/apps/tag/message/NdefMessageParser.java
src/com/android/apps/tag/provider/TagContract.java
src/com/android/apps/tag/provider/TagDBHelper.java
src/com/android/apps/tag/provider/TagProvider.java
src/com/android/apps/tag/record/ImageRecord.java
src/com/android/apps/tag/record/MimeRecord.java
src/com/android/apps/tag/record/ParsedNdefRecord.java
src/com/android/apps/tag/record/RecordUtils.java
src/com/android/apps/tag/record/SmartPoster.java
src/com/android/apps/tag/record/TextRecord.java
src/com/android/apps/tag/record/UriRecord.java
src/com/android/apps/tag/record/VCardRecord.java
tests/src/com/android/apps/tag/provider/ProviderTests.java [deleted file]