google-mirror-api

how to connect Android phone with Google Glass for data sharing

天大地大妈咪最大 提交于 2020-01-12 08:35:48
问题 I've made my app running on the Google Glass, but it's a little slow in real time. Is there a way to connect my Android phone with the Glass for data communication, so that the phone can take care of the calculation, and the Glass only show the result? The Glass can tether with Android phone by bluetooth, so it should be able to transmit data via it? Don't know if it's possible to run my app on cloud server and send the result back to my Glass, but guessing that would be slow as well. Any

Are there any restrictions for using HTML tags in “html” field?

折月煮酒 提交于 2020-01-10 14:10:20
问题 According to https://developers.google.com/glass/v1/reference/timeline#html one can use HTML. Are there any restrictions for using HTML tags in "html" field? 回答1: We will update the documentation regarding this shortly but in the meantime, here are the restrictions: Allowed HTML elements: Use these elements in your timeline cards. Headers: h1 , h2 , h3 , h4 , h5 , h6 Images: img Lists: li , ol , ul HTML5 semantic: article , aside , details , figure , figcaption , footer , header , nav ,

Can I use OAUTH2 Service Accounts with Glass Mirror API?

删除回忆录丶 提交于 2019-12-24 16:15:39
问题 I'm trying to use a service account to insert a timeline notiification to my Glass. I've successfully used the technique below to access Google Drive within the same program. The App Engine code below is my attempt to do the same to access the Mirror API. No errors are generated and everything appears successful but I never see the notification on my Glass timeline. Can I expect service accounts to work with the Mirror API like they do with Drive API? http = httplib2.Http() credentials =

Google Glass Timeline item actions: What are the icon dimensions?

二次信任 提交于 2019-12-24 15:27:49
问题 What are the native image dimensions of the icons specified in 'iconUrl' for a custom timeline item action? This doesn't appear to be documented yet. 回答1: The menuItems's icon should be 50 x 50 pixels and white on transparent according to our documentation on UI Guidelines: Follow these guidelines when designing your menus: If you specify an icon, use a 50x50 pixel image. Limit display names to a few words if possible. Use the default icon and display name for built-in menu items unless you

Erroring with Bundle of HTML Pages

橙三吉。 提交于 2019-12-24 06:59:09
问题 I am trying to create a tree structure that is more than 3 levels (Bundle Cover -> Bundled Cards -> Menu Items) by using HTML pages. I have a bundle of cards with a cover that displays appropriately all using setText() . Then I changed one of the cards to setHtml() instead of setText() and used the HTML template from the playground to test. Then I added HTML pages to that card using an ArrayList<String> . Using the playground, I get the card below. When I access on Glass, I get "Stopped

Mirror API latency when sending something to a timeline

微笑、不失礼 提交于 2019-12-24 00:57:17
问题 It seems that sometimes timeline items (just text) arrive instantly and other times they take forever... Is there a way to send one at precisely the right time? 回答1: You can send the notification at a precise time. timelineItem.getNotification() .setDeliveryTime(new DateTime(oneMinuteInFuture.getTime())); That's a java example, where oneMinuteInFuture is a Calendar object set to one minute after now. What happens when you do this is the card is inserted in the timeline immediately, but the

Can you allow a user to REPLY to a card and not have a card appear with their response text in the timeline?

隐身守侯 提交于 2019-12-23 09:39:31
问题 When I have a bundle (perhaps this also occurs with a single timeline card) with a REPLY action and the user executes that action, with lets say "peanut butter and jelly sandwich", a new timeline card appears with white text on a black background on Glass with the text "peanut butter and jelly sandwich". When looking at the playground that same card appears with the user's avatar on the left (like the Abe Lincoln template example), and the text on the right. Lets call this new card the

Java Google glass starter project mapping in AWS EC2

会有一股神秘感。 提交于 2019-12-23 05:40:11
问题 I am stuck with the Google Glass Java Starter Project. I have succesfully downloaded it and ran it locally using mvn jetty:run. It runs beautifully on localhost in my machine. I deployed it to Google App Engine sucessfully, but I wanted to add more functionality to it, so I decided to use the Java Quartz library to send scheduled notifications to the glassware. Unfortunately, the quartz library works spawning new threads and GAE doesn't allow me to do so. I decided to run it in a separate

Google Glass GDK Authentication using PHP

末鹿安然 提交于 2019-12-22 09:07:46
问题 I am trying to follow this link to authenticate user in GDK: https://developers.google.com/glass/develop/gdk/authentication It gives example in Java, but my webpage uses PHP. I know I have to use https://github.com/google/google-api-php-client/blob/master/src/Google/Service/Mirror.php I am stuck with service auth page making call to mirror.accounts.insert. Not sure how to implement the service auth page. Any example would be great help. [SOLVED] Working example is here: http://goo.gl/DVggO6

Multipart POST request Google Glass

有些话、适合烂在心里 提交于 2019-12-22 08:18:49
问题 I am trying to add an attachment to my timeline with the multipart encoding. I've been doing something like the following: req = urllib2.Request(url,data={body}, header={header}) resp = urllib2.urlopen(req).read() And it has been working fine for application/json. However, I'm not sure how to format the body for multipart. I've also used some libraries: requests and poster and they both return 401 for some reason. How can I make a multipart request either with a libary(preferably a plug-in to