nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Add action for static card inserted using GDK #320

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have build a couple of apps on the GDK, and will want to insert timeline 
items into the timeline.

It seems like static card doesnt support actions for GDK at the moment (correct 
me if I am wrong).

Possible to add that in for the next release please? 

Original issue reported on code.google.com by chuazy on 21 Dec 2013 at 12:56

GoogleCodeExporter commented 8 years ago

Original comment by mimm...@google.com on 21 Dec 2013 at 1:19

GoogleCodeExporter commented 8 years ago
Would it satisfy your use case if you tapping on a static card could fire off 
an intent?

Original comment by mimm...@google.com on 21 Dec 2013 at 1:20

GoogleCodeExporter commented 8 years ago
yes, a pending intent is fine. just like any live card =)

Original comment by chuazy on 21 Dec 2013 at 1:48

GoogleCodeExporter commented 8 years ago
I would like to add to this...

I was going to open an issue to allow static cards to display menu items and 
each menu item have a pending intent associated with it.

Example:
Card = "Scanned barcode www.google.com"
MenuItem 1= "Open Browser"; (PendingIntent to open URL)
MenuItem 2= "Share"; (PendingIntent to share)
MenuItem 3= "Delete"; (PendingIntent to app to delete card from timeline)

Maybe the option to add MenuItems or "onTap" PendingIntent

Original comment by j.romero.1214 on 22 Dec 2013 at 8:40

GoogleCodeExporter commented 8 years ago
Wont that be handled by a pendingitent that fires off a menu activity, and the 
menu items are defined in that activity? This is the same flow as menu in 
livecard.

Original comment by chuazy on 22 Dec 2013 at 9:43

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
suggest you look at the documentation 
https://developers.google.com/glass/develop/gdk/ui/live-card-menus

Original comment by chuazy on 22 Dec 2013 at 12:09

GoogleCodeExporter commented 8 years ago
Thank you chu. Now it makes sense. This should suffice for static cards as well.

Original comment by j.romero.1214 on 22 Dec 2013 at 7:16

GoogleCodeExporter commented 8 years ago
Issue 324 has been merged into this issue.

Original comment by ala...@google.com on 6 Jan 2014 at 5:34

GoogleCodeExporter commented 8 years ago
So what is the current status for this issue?  Is the only way (at this point 
in time) to create an interactive static card to use the Mirror API ?

Original comment by josephba...@gmail.com on 7 Jan 2014 at 5:20

GoogleCodeExporter commented 8 years ago
I believed it will only be available in the update.

Right now it will only be available through mirror API.

Original comment by chuazy on 8 Jan 2014 at 1:36

GoogleCodeExporter commented 8 years ago
Voting for this issue. I'd like to be able to add the ability to add a menu 
item for a video stream to a static card.

Original comment by jru...@gmail.com on 18 Jan 2014 at 1:40

GoogleCodeExporter commented 8 years ago
I agree. I would like to have that ability on GDK.

Original comment by nemanjaj...@cofamedia.com on 22 Jan 2014 at 2:21

GoogleCodeExporter commented 8 years ago
This is very needed indeed.

Original comment by milosbos...@gmail.com on 22 Jan 2014 at 2:35

GoogleCodeExporter commented 8 years ago
Bump !

Delete, search, open existing app .... All critcal

Original comment by quitecon...@gmail.com on 26 Jan 2014 at 2:22

GoogleCodeExporter commented 8 years ago
Chiming in -- I'd love to have this available

Original comment by ali.ukani on 26 Jan 2014 at 11:47

GoogleCodeExporter commented 8 years ago
When will this be implemented?

Original comment by ryan.kop...@gmail.com on 29 Jan 2014 at 10:35

GoogleCodeExporter commented 8 years ago
Issue 324 specifically addresses adding "standard" menu item actions, 
specifically "PLAY_VIDEO"

We're currently contemplating an application which must work offline (connected 
to an isolated web fragment in this case) and play an RTSP stream.

Original comment by tracking...@gmail.com on 4 Feb 2014 at 8:05

GoogleCodeExporter commented 8 years ago
Looking forward to this functionality as well.  Would be nice if we can have a 
CardScrollView with static Cards, and each Card has a menu.

Original comment by eddie.he...@gmail.com on 24 Feb 2014 at 11:13

GoogleCodeExporter commented 8 years ago
I'm not sure if this bug is actually applicable to what I'd like to be able to 
do.  Basically I feel that the GDK should have full access to the Mirror API 
for injecting and updating items in the timeline.  

My particular use case is that I'd like to take a picture (meaning I have to 
launch the camera intent from the GDK) and have a server side application 
receive notification of the timeline card, do image analysis and potentially 
update / add more cards into bundle based on the first image.  As it stands my 
GDK application has to do an HTTP submission to a custom web service that then 
does the analysis and updates to the timeline.  

If my GDK app could simply insert a timeline card with the original image, it 
would drastically simplify my client code, including making it possible to take 
images and have them analyzed later, even if you're offline.  

Original comment by bda...@saintandreas.org on 15 May 2014 at 11:47

GoogleCodeExporter commented 8 years ago
What is the status on this? I currently have the need to view a rtsp stream 
from a card. The card is rendered upon the call of a menu item.

Original comment by zaqavil...@gmail.com on 11 Jun 2014 at 9:00

GoogleCodeExporter commented 8 years ago
Both this and issue 522 
(https://code.google.com/p/google-glass-api/issues/detail?id=522) would hugely 
add to the GDK, the inability to insert static cards using the GDK seems to be 
a big hole.

From the GDK I'd like to be able to insert static cards from my live card GDK 
project, then from the users timeline they can have a menu option which will 
launch the live card from that static timeline card (with an intent and thus 
some extra values the live card will use).

Original comment by willel...@gmail.com on 14 Jul 2014 at 12:12