Search code examples
google-glassgoogle-gdk

How to publish and reveal Static Card from Glass GDK?


I updated Glass to XE12 today. I'm fascinated by the addition of Static Cards API into GDK.

I was able to publish Static Card, but it doesn't focus automatically. User has to scroll to it.

Am I doing something wrong, or this is a limitation of GDK by now?

Card c = new Card(MyService.this);
c.setText(test1);
c.setFootnote(test2);
long lastCard = mTimelineManager.insert(c);

Solution

  • Static cards currently only support the kind of silent background publishing that you are seeing now. Please file a feature request in our issue tracker if you would like to see more capabilities like the ones you're describing.