8 years agoTemoprarily disable the My tag tab.
Jeff Hamilton [Thu, 28 Oct 2010 16:34:18 +0000]
Temoprarily disable the My tag tab.

Change-Id: I481f5a7eb752d20885d5955f67eebfd49fff206e

8 years agoMerge "Set the version number to 1.0" into gingerbread
Jeff Hamilton [Thu, 28 Oct 2010 07:30:26 +0000]
Merge "Set the version number to 1.0" into gingerbread

8 years agoSet the version number to 1.0
Jeff Hamilton [Wed, 27 Oct 2010 18:22:25 +0000]
Set the version number to 1.0

Change-Id: I4744e40b1eb2bf7f8fcb25531712b3b53e1c1337

8 years agoFix an issue where the shared info via the Intent was
Ben Komalo [Thu, 28 Oct 2010 01:10:55 +0000]
Fix an issue where the shared info via the Intent was
getting duplicated on restart of the app.

Change-Id: I3bf41f0ad097803048dcf48d8650236436b80079

8 years agoAdd support for sharing URL's via My Tag.
Ben Komalo [Wed, 27 Oct 2010 22:46:48 +0000]
Add support for sharing URL's via My Tag.

Change-Id: I39af6516ec2287e1af0c9dc46ca946cbb65cec22

8 years agoInitial, but not very nice, sharing of text via My Tag.
Ben Komalo [Wed, 27 Oct 2010 21:46:25 +0000]
Initial, but not very nice, sharing of text via My Tag.
TODOs
- prompt user for wiping existing tags
- launch MyTag within the TagBrowser
- add support for images / parsing URL's / contacts

Change-Id: I9f4d9b2ee5a3a7345ea269acfd8f9bb5c3511542

8 years agoSwitch to a simpler storage model.
Jason parks [Tue, 26 Oct 2010 19:42:45 +0000]
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

8 years agoPrevent NPE when gallery (picasa) doesn't give us a cursor for the image
Ben Komalo [Wed, 27 Oct 2010 20:20:26 +0000]
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

8 years agoMerge "Fix bug 3138074. Edit Tags app strings to match mocks." into gingerbread
Roy West [Wed, 27 Oct 2010 18:26:39 +0000]
Merge "Fix bug 3138074. Edit Tags app strings to match mocks." into gingerbread

8 years agoFix bug 3138074. Edit Tags app strings to match mocks.
Roy West [Wed, 27 Oct 2010 17:59:49 +0000]
Fix bug 3138074. Edit Tags app strings to match mocks.

Change-Id: I4234a7ac90ca70315ec08f741fbebdd34b573458

8 years agoMerge "Import revised translations. DO NOT MERGE" into gingerbread
Eric Fischer [Wed, 27 Oct 2010 17:58:48 +0000]
Merge "Import revised translations.  DO NOT MERGE" into gingerbread

8 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Wed, 27 Oct 2010 00:03:03 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: I88ebe917ebd479e70e550f56f94f399787d3f6c2

8 years agoWire up delete icon for each record.
Ben Komalo [Tue, 26 Oct 2010 21:26:34 +0000]
Wire up delete icon for each record.
This introduces an explicit callbacks interface
for the host activity.

Change-Id: I381c59176daea4c97daa7f8d392eb30fc181e2a9

8 years agoAdd a minus sign for deleting a record in tag editor.
Ben Komalo [Tue, 26 Oct 2010 21:29:02 +0000]
Add a minus sign for deleting a record in tag editor.
Click listeners not actually hooked up.

Change-Id: Ie6544b12eb92b7afa1674f4eb3cd3a58266cf9f6

8 years agosupport more SmartPoster fields.
Nick Kralevich [Fri, 22 Oct 2010 16:57:54 +0000]
support more SmartPoster fields.

Change-Id: I308eb23d8a3df8d5fcecc69b155699ddcfe70203

8 years agoFix a crasher when saving My Tag.
Jeff Hamilton [Tue, 26 Oct 2010 18:02:04 +0000]
Fix a crasher when saving My Tag.

Fix the "no tags" text size and make
the button not flash when loading.

Change-Id: I31301d630fc4e2890b9dc71dfa1e5d838d5826f3

8 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 25 Oct 2010 23:52:35 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: Icb62ff20cc3c31cafbde25c156a1473c0d4e9895

8 years agoDo a slightly better job of storing "My tag" in the NFC stack.
Jeff Hamilton [Mon, 25 Oct 2010 21:45:30 +0000]
Do a slightly better job of storing "My tag" in the NFC stack.

Still not functional.

Change-Id: Ie9e9b9b215dc61d3c842b48c10944837c9793421

8 years agoLoad contacts data asynchronously.
Ben Komalo [Mon, 25 Oct 2010 17:56:04 +0000]
Load contacts data asynchronously.

Change-Id: I5e5fbea236dd425dce444fa02d5c8fe49ae977cd

8 years agoMerge "Show a placeholder contact icon if no photo is available." into gingerbread
Ben Komalo [Mon, 25 Oct 2010 17:41:40 +0000]
Merge "Show a placeholder contact icon if no photo is available." into gingerbread

8 years agoMerge "Some minor pixel adjustments and consolidating some common values to a style...
Ben Komalo [Mon, 25 Oct 2010 17:41:25 +0000]
Merge "Some minor pixel adjustments and consolidating some common values to a style." into gingerbread

8 years agoMerge "Show empty text in the tag list." into gingerbread
Jeff Hamilton [Mon, 25 Oct 2010 17:31:22 +0000]
Merge "Show empty text in the tag list." into gingerbread

8 years agoMerge "Import initial translations." into gingerbread
Eric Fischer [Mon, 25 Oct 2010 16:54:49 +0000]
Merge "Import initial translations." into gingerbread

8 years agoShow a placeholder contact icon if no photo is available.
Ben Komalo [Sun, 24 Oct 2010 20:44:51 +0000]
Show a placeholder contact icon if no photo is available.

Change-Id: If8df3129107ba00477b116e48bb3574c83ad0b73

8 years agoSome minor pixel adjustments and consolidating some common
Ben Komalo [Sun, 24 Oct 2010 20:37:57 +0000]
Some minor pixel adjustments and consolidating some common
values to a style.

Change-Id: I97131b0f79e78f94cbbb73a8614cb225d6a393a9

8 years agoMerge "Initial support for adding VCard data to the tag editor." into gingerbread
Ben Komalo [Mon, 25 Oct 2010 16:16:00 +0000]
Merge "Initial support for adding VCard data to the tag editor." into gingerbread

8 years agoShow empty text in the tag list.
Jeff Hamilton [Mon, 25 Oct 2010 04:46:01 +0000]
Show empty text in the tag list.

In the all tags list it has a link
to the web based help text about tags.

Change-Id: I1570fd5f698655efe0d88fea932b852312669f8e

8 years agoMerge "Prompt the user to enable NFC when launching the app and it's off." into ginge...
Jeff Hamilton [Mon, 25 Oct 2010 03:16:45 +0000]
Merge "Prompt the user to enable NFC when launching the app and it's off." into gingerbread

8 years agoInitial support for adding VCard data to the tag editor.
Ben Komalo [Sun, 24 Oct 2010 18:59:04 +0000]
Initial support for adding VCard data to the tag editor.

Change-Id: Ie23555b501fe2b0e6aad63aa66c7abcc3edbfc1e

8 years agoPrompt the user to enable NFC when launching the app and it's off.
Jeff Hamilton [Sun, 24 Oct 2010 18:29:21 +0000]
Prompt the user to enable NFC when launching the app and it's off.

Change-Id: I1f0004ddf744de3abb629839f835ca13ccdd15c9

8 years agoAdd support for editing exiting records that require
Ben Komalo [Fri, 22 Oct 2010 19:34:12 +0000]
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

8 years agoImport initial translations.
Eric Fischer [Sat, 23 Oct 2010 00:46:43 +0000]
Import initial translations.

Change-Id: Ibe386f788c25bd6e334963a6f459b9aae67c0b84

8 years agoUpdate Tag app for new Tag mock constructors.
Nick Pelly [Fri, 22 Oct 2010 19:43:18 +0000]
Update Tag app for new Tag mock constructors.

Change-Id: I92d2f3bcff23f737c77da5c1c4a2e55b725c0ac1
Signed-off-by: Nick Pelly <npelly@google.com>

8 years agoBuild against the SDK.
Jeff Hamilton [Fri, 22 Oct 2010 20:59:42 +0000]
Build against the SDK.

Change-Id: I39aa170f06052fc904441af681a70d91d4151c92

8 years agoFix comments from review.
Jeff Hamilton [Fri, 22 Oct 2010 21:13:54 +0000]
Fix comments from review.

Change-Id: I4a07eb586fcf183c36a3a3d23beeed57e04e1178

8 years agoFix the build.
Jeff Hamilton [Fri, 22 Oct 2010 21:13:32 +0000]
Fix the build.

Change-Id: Id1bb0272b4796360e799ad49b923de4f3c461963

8 years agoMerge "Implement starring of tags." into gingerbread
Jeff Hamilton [Fri, 22 Oct 2010 20:55:46 +0000]
Merge "Implement starring of tags." into gingerbread

8 years agoMerge "Expose MIME data through the openFile() interface." into gingerbread
Jeff Hamilton [Fri, 22 Oct 2010 20:55:27 +0000]
Merge "Expose MIME data through the openFile() interface." into gingerbread

8 years agoImplement starring of tags.
Jeff Hamilton [Fri, 22 Oct 2010 06:42:44 +0000]
Implement starring of tags.

Change-Id: I8217c599fa97a3a22a3c5c3896300dfc790ac2eb

8 years agoExpose MIME data through the openFile() interface.
Jeff Hamilton [Fri, 22 Oct 2010 06:03:52 +0000]
Expose MIME data through the openFile() interface.

Change-Id: Ibdd6348e7a5a4fca4318e1b79c675316c8a34fe8

8 years agoMerge "Add a test to test the ordinal assignment of messages and records in the datab...
Jason parks [Fri, 22 Oct 2010 20:33:41 +0000]
Merge "Add a test to test the ordinal assignment of messages and records in the database." into gingerbread

8 years agoAdd a test to test the ordinal assignment of messages and records in the database.
Jason parks [Fri, 22 Oct 2010 19:38:33 +0000]
Add a test to test the ordinal assignment of messages and records in the database.

Change-Id: Iab10e066c85fa69e459c251c59597b0345fca83d

8 years agoUse JPEG instead of PNG as image format.
Ben Komalo [Fri, 22 Oct 2010 17:40:45 +0000]
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

8 years agoChanges towards getting the app compiled using the SDK.
Jeff Hamilton [Thu, 21 Oct 2010 22:42:09 +0000]
Changes towards getting the app compiled using the SDK.

There are only a few things left in the NFC code
that aren't using public APIs.

Change-Id: I5c1686319d5dac6313ea732105f5eeb36a9562c0

8 years agoMerge "Store the entire tag in the database." into gingerbread
Jason parks [Thu, 21 Oct 2010 22:38:35 +0000]
Merge "Store the entire tag in the database." into gingerbread

8 years agoStore the entire tag in the database.
Jason parks [Thu, 21 Oct 2010 22:22:16 +0000]
Store the entire tag in the database.

Two new tables, ndef_tags and ndef_records, have
been added. The ndef_tags table is not currently
used but is there for furture proofing.

Change-Id: Ifd8f3bd0b4055a9d9cd0d456ea460406b4711cb0

8 years agoSerialize ImageRecord as image/png MIME records.
Ben Komalo [Thu, 21 Oct 2010 22:05:14 +0000]
Serialize ImageRecord as image/png MIME records.

Change-Id: Idecb4f690203504cfa134e251452176d8ecc4ce4

8 years agoChange RecordEditInfo to return an NdefRecord instead of
Ben Komalo [Thu, 21 Oct 2010 21:49:35 +0000]
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

8 years agoFix indenting and add some more padding to URL edit view.
Ben Komalo [Thu, 21 Oct 2010 21:45:02 +0000]
Fix indenting and add some more padding to URL edit view.

Change-Id: Ifb35e82121226df6fa030aff920659a35ef2ecc0

8 years agoMerge "Move toUriRecord() to a more findable place." into gingerbread
Nick Kralevich [Thu, 21 Oct 2010 21:37:07 +0000]
Merge "Move toUriRecord() to a more findable place." into gingerbread

8 years agoMove toUriRecord() to a more findable place.
Nick Kralevich [Thu, 21 Oct 2010 21:29:36 +0000]
Move toUriRecord() to a more findable place.

Change-Id: I6f5383ca14aa11e30561f88383d2558d4e16f1bf

8 years agoMark the Tag app as requiring the NFC hardware feature.
Jeff Hamilton [Thu, 21 Oct 2010 20:49:35 +0000]
Mark the Tag app as requiring the NFC hardware feature.

Change-Id: Idedb6059be0bbda820d3ea50e3434541d1ab085e

8 years agoFlesh out tag editor some more:
Ben Komalo [Thu, 21 Oct 2010 19:17:14 +0000]
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

8 years agoStop using the private VCARD implementation.
Jeff Hamilton [Tue, 19 Oct 2010 21:44:31 +0000]
Stop using the private VCARD implementation.

Rip out the URI view creation to a utilty class
so it can be reused by other record classes.

Change-Id: I1362f16c87dbbddb342439546c239047574e4773

8 years agoMerge "delete vcard support. Relies on private APIs" into gingerbread
Nick Kralevich [Thu, 21 Oct 2010 17:39:25 +0000]
Merge "delete vcard support.  Relies on private APIs" into gingerbread

8 years agoChange Bookmark to URL for adding URL content to a tag.
Ben Komalo [Thu, 21 Oct 2010 17:21:34 +0000]
Change Bookmark to URL for adding URL content to a tag.
There is no Intent action that can be fired to select
a bookmark right now.

Change-Id: I82abde7b0253c2b19e7ba5c82fec1c516e35cb15

8 years agoSave/restore outstanding pick info.
Ben Komalo [Thu, 21 Oct 2010 16:25:51 +0000]
Save/restore outstanding pick info.
Some miscellaneous cleanup.

Change-Id: If47f2ff76d155c0dc662a37afe31081feedb40da

8 years agoMerge "Beginnings of support for adding new records to a tag when editing. Currently...
Ben Komalo [Thu, 21 Oct 2010 02:36:06 +0000]
Merge "Beginnings of support for adding new records to a tag when editing. Currently only supports ImageRecords." into gingerbread

8 years agoNew asset drop for Tag app.
Ben Komalo [Thu, 21 Oct 2010 00:49:21 +0000]
New asset drop for Tag app.

Change-Id: I74737579db9162081ec6dce411e99e1eec9d8907

8 years agoBeginnings of support for adding new records to a tag
Ben Komalo [Wed, 20 Oct 2010 21:50:58 +0000]
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

8 years agoMake My Tag activity scrollable, and re-use common divider.
Ben Komalo [Wed, 20 Oct 2010 21:49:41 +0000]
Make My Tag activity scrollable, and re-use common divider.

Change-Id: I53d556adbdf2ad4b2928dff535bdaa9896ab9ab9

8 years agodelete vcard support. Relies on private APIs
Nick Kralevich [Wed, 20 Oct 2010 16:43:18 +0000]
delete vcard support.  Relies on private APIs

Change-Id: Ie79acefd9b8e05fb0f52f12348b9ca341953bf7c

8 years agoAdd one more string for adding contact data types to a tag,
Ben Komalo [Wed, 20 Oct 2010 05:06:26 +0000]
Add one more string for adding contact data types to a tag,
now that we have VCARD support.

Change-Id: Ibd12f0e010e428ae770506aef04c37387ef43595

8 years agoAdd all remaining strings from UI mocks.
Ben Komalo [Wed, 20 Oct 2010 00:37:25 +0000]
Add all remaining strings from UI mocks.

Change-Id: Ic3b7f8fb4773de0c0034a0e1b3593e2b06613cc2

8 years agoremove getRecordType(), other cleanup.
Nick Kralevich [Tue, 19 Oct 2010 23:19:23 +0000]
remove getRecordType(), other cleanup.

Change-Id: I6c7922b22d0bef57ebfd2a6dee059364ca43a859

8 years agoinitial vcard support.
Nick Kralevich [Tue, 19 Oct 2010 22:48:01 +0000]
initial vcard support.

Change-Id: I0be8b9d023d18fd23ca1f61d002c5a08a61a4791

8 years agoWrite "my tag" contents to local NdefMessage.
Ben Komalo [Tue, 19 Oct 2010 20:34:03 +0000]
Write "my tag" contents to local NdefMessage.

Change-Id: If40c244630eca85a71b5ea10b6aa20503c99bc0c

8 years agoMerge "Tweak around with ImageRecords / MimeRecords" into gingerbread
Nick Kralevich [Tue, 19 Oct 2010 21:41:44 +0000]
Merge "Tweak around with ImageRecords / MimeRecords" into gingerbread

8 years agoPlay notification on tag discovery.
Ben Komalo [Tue, 19 Oct 2010 21:16:49 +0000]
Play notification on tag discovery.

Change-Id: Ica160bbe1ffc87bad88b92f36bb61bdc623d32d3

8 years agoTweak around with ImageRecords / MimeRecords
Nick Kralevich [Tue, 19 Oct 2010 21:26:00 +0000]
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

8 years agoCreate the tag canon. It fires tags.
Jeff Hamilton [Tue, 19 Oct 2010 19:53:34 +0000]
Create the tag canon. It fires tags.

Change-Id: I52a256a2f71e797c9a7f3d26cdd9388f21427474

8 years agoDisplay MIME images inline.
Jeff Hamilton [Tue, 19 Oct 2010 21:04:45 +0000]
Display MIME images inline.

Change-Id: I41c5473faf2aece5ffac8903904ac9b495ebe5f0

8 years agoFix comments from review.
Jeff Hamilton [Tue, 19 Oct 2010 20:14:42 +0000]
Fix comments from review.

Change-Id: Ib95c6b2b12ce1312204b615e42a738fffb819d92

8 years agoTweak some layouts & add parsing for absolute URIs
Jeff Hamilton [Tue, 19 Oct 2010 17:36:14 +0000]
Tweak some layouts & add parsing for absolute URIs

Change-Id: I6bea148bd55d8fabd712c8578f934621272a76d4

8 years agoadd TextRecord.newTextRecord() to create an Ndef Text Record.
Nick Kralevich [Tue, 19 Oct 2010 19:09:43 +0000]
add TextRecord.newTextRecord() to create an Ndef Text Record.

Change-Id: Ice3bf73ea9d715ebc5c45a38ff857a4b45b057cf

8 years agoinitial support for MIME ndef objects.
Nick Kralevich [Tue, 19 Oct 2010 17:55:06 +0000]
initial support for MIME ndef objects.

This is preliminary work for vcard support.

Change-Id: I54f90436c0b4eaa0ec0e69817a3715a070436b9b

8 years agoget unittests working again.
Nick Kralevich [Tue, 19 Oct 2010 17:08:17 +0000]
get unittests working again.

Change-Id: I6d488035572c4d39ff3b91f65fd5335f662b2d30

8 years agoA skeletal, non-functional UI for the "My Tag" editor.
Ben Komalo [Tue, 19 Oct 2010 05:15:27 +0000]
A skeletal, non-functional UI for the "My Tag" editor.
Does not persist any actual data to the local NdefMessage, nor
read it yet.

Change-Id: Ie4c5d0900a0c2ba24c34a5ef19c2ae7b668bb176

8 years agoFix the layout for the header in the tag viewer.
Jeff Hamilton [Tue, 19 Oct 2010 04:25:45 +0000]
Fix the layout for the header in the tag viewer.

8 years agoAdd the date in the title bar when viewing an exsiting tag.
Jeff Hamilton [Mon, 18 Oct 2010 23:06:53 +0000]
Add the date in the title bar when viewing an exsiting tag.

Change-Id: I3c943c1d8057958b958f8825db0d4aab3fad4760

8 years agoUpdate the UI to match the latest spec.
Jeff Hamilton [Mon, 18 Oct 2010 22:27:21 +0000]
Update the UI to match the latest spec.

The TagViewer now loads tags from the database
instead of taking them as arguments in intents.

It should also now properly handle scanning a
new tag while viewing one, but I can't test that.

Change-Id: Ib0325d9838ce14cb50e04cade6f467be2dbe1694

8 years agoImplement a basic content provider for tags.
Jeff Hamilton [Mon, 18 Oct 2010 20:00:30 +0000]
Implement a basic content provider for tags.

Hookup content change notifications so the tag
list updates when you delete a tag.

A few small optimizations in TagList.

Change-Id: I342ba98c77705a393ca9d84f5b2ff14437fb1d0b

8 years agoBe defensive when launching actions for URIs.
Jeff Hamilton [Mon, 18 Oct 2010 18:32:08 +0000]
Be defensive when launching actions for URIs.

Also, in the no handler case try to pretty
print the URI.

Change-Id: I630aff86d141e101b9a300105105b3a852dbe894

8 years agoFix the build.
Jeff Hamilton [Mon, 18 Oct 2010 19:00:58 +0000]
Fix the build.

Change-Id: I79d54897edf518c2460a4243dfc246d2f01f22ac

8 years agoImport the NFC tag app.
Jeff Hamilton [Mon, 18 Oct 2010 18:13:10 +0000]
Import the NFC tag app.

It came from development/apps/Tag at
f8580cf67655e5b4dcf14b2520a8897e97053608

The APK name has changed to Tag.apk.

Change-Id: I4976c4d5b656544676fdd01f64be838e4aafd30f

8 years agonew project, first commit
Ed Heyl [Fri, 15 Oct 2010 21:55:44 +0000]
new project, first commit