History log of /packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5f90b8ac1de415b3081525936b094e9a326c659e 06-Sep-2012 Martijn Coenen <maco@google.com> Fix Tags app NPE.

mimeType parser can return null on some types.

Change-Id: I8bd8d9674686bcbdec47410d5f6700c6483a53db
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
116871653662979554a7326991ba4fd599ac44ff 20-Jan-2012 Nick Pelly <npelly@google.com> Some quick cleanup of Tag.apk using new NDEF APIs

Change-Id: Ib3825f7abb27f7552ad0c0a93ce5ceb3af18d262
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
cb41da2817175996179cc34e50e5e284d043d3cc 14-Jan-2011 Ben Komalo <benkomalo@google.com> Large simplification to My tags functionality.

- removed image record editing
- removed mandatory text in all My tags
- made the My tags fixed number of records
the ability to add/remove records
- also fixes unparcelling bugs

Change-Id: Iab6da6eb309ee8ba43cabaa45be1c9442c229a47
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
8833d906e3c2d0d4e1b339d6c8fdd87cc23640c8 28-Oct-2010 Ben Komalo <benkomalo@google.com> Restore tag records when re-starting MyTag activity.
TODO vcard support (not sure how to do this yet...)
TODO storing the tag in a db instead of just relying on the
local message so that contents can be restored even
if the checkbox is off

Change-Id: I27574d25ecd9d814db7c73189ac30bd060aa7e1e
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
40d9a0cd0a37d184ee737b2d7138a39e4292ce3e 26-Oct-2010 Jason parks <jparks@google.com> 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
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
3ec19b7456557b9c33d1f91546b967c87438aa8b 27-Oct-2010 Ben Komalo <benkomalo@google.com> Prevent NPE when gallery (picasa) doesn't give us a cursor for the image
(can happen on flaky network or in airplane mode, etc).

Bug: 3120721
Change-Id: I01945b6d0d0de10ca3d002c024cb173a57307632
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
ad9a9c83630d87328c8439ac8b8b9a2c800dbd57 26-Oct-2010 Ben Komalo <benkomalo@google.com> Wire up delete icon for each record.
This introduces an explicit callbacks interface
for the host activity.

Change-Id: I381c59176daea4c97daa7f8d392eb30fc181e2a9
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
4f8d90eaec475cba80a01a6f3aaa024781591451 22-Oct-2010 Ben Komalo <benkomalo@google.com> Add support for editing exiting records that require
external pick activities.
The editor just rebuilds all views all the time for now,
since that will need to happen when restoring state.

Change-Id: I77adea84ffa98d5bd500386538602f059f9e08c3
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
b66ce65720e4e1cad7ab92efdac4691ec6552ca9 22-Oct-2010 Ben Komalo <benkomalo@google.com> Use JPEG instead of PNG as image format.
Downscale images to 128x128 for now (will clean up later).
Fix issue with missing separator

Change-Id: I7a1af539bcfc07f4bf626ea117035a508c645509
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
eac4f94910e1f034d57c54e4f53a34786bc4bb4c 22-Oct-2010 Ben Komalo <benkomalo@google.com> Serialize ImageRecord as image/png MIME records.

Change-Id: Idecb4f690203504cfa134e251452176d8ecc4ce4
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
9a984e566c353ce6fd9887b2e03ab1e99ad07b5a 21-Oct-2010 Ben Komalo <benkomalo@google.com> Change RecordEditInfo to return an NdefRecord instead of
a ParsedNdefRecord as the current value being held.
Also made the Activity store the list to the NFC stack.

ImageRecord's are not quite saved properly, since we need
serialization code for that.

Change-Id: I721d63243ed89b79b50449fae70ce848fcb0bbf5
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
871419825f5318836faa4926824d03a2ad8912e6 21-Oct-2010 Ben Komalo <benkomalo@google.com> Flesh out tag editor some more:
- the editor now has a list of RecordEditInfo
- the EditInfo is responsible for building an edit View,
and reading the current value from that View

Change-Id: I8db83ca6e565f295a599e6c902f56dfb934b1dfc
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
086a4c3e7ddb7b12d6dcb50faaa86b0db093ff8e 21-Oct-2010 Ben Komalo <benkomalo@google.com> Save/restore outstanding pick info.
Some miscellaneous cleanup.

Change-Id: If47f2ff76d155c0dc662a37afe31081feedb40da
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
760fe581f6750edd81df4d86cead28a5b9070620 20-Oct-2010 Ben Komalo <benkomalo@google.com> Beginnings of support for adding new records to a tag
when editing. Currently only supports ImageRecords.

TODO: support other types
TODO: support editing/removing records that were just added

Change-Id: I4da95084b474f68353ba9e82751bab6316975f11
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
24147eeedccccc552ba116c74384a8ea22da9dcb 20-Oct-2010 Nick Kralevich <nnk@google.com> remove getRecordType(), other cleanup.

Change-Id: I6c7922b22d0bef57ebfd2a6dee059364ca43a859
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java
081de56bfdd18f47025ef7af85b45592db244233 19-Oct-2010 Nick Kralevich <nnk@google.com> Tweak around with ImageRecords / MimeRecords

This CL does a little bit more work up front to determine
if the blob we're dealing with is an actual image, as
well as factoring out the code dealing with images from
other mime types.

IMHO, it's a slightly cleaner design.

Change-Id: If3b1ff2ddd06088e711bfda00a26729e274e1c36
/packages/apps/Tag/src/com/android/apps/tag/record/ImageRecord.java