google-mirror-api

Is it possible to play with Google Mirror API without having the device?

女生的网名这么多〃 提交于 2019-12-21 03:33:31
问题 I've been reading the documentation and playing at https://glass-java-starter-demo.appspot.com/ but it seems there is no way to further investigate since when following the instructions from https://developers.google.com/glass/playground at my https://code.google.com/apis/console/ the Google Mirror switch is not showing up. Is there any workaround? 回答1: According to issue #2 on the tracker (https://code.google.com/p/google-glass-api/issues/detail?id=2) access is currently restricted to

Hello World program for Google Glass - Step by Step

给你一囗甜甜゛ 提交于 2019-12-20 12:35:54
问题 I started reading stuff on Google Glass development one week ago, including this. However, I still could not find a tutorial to develop a "complete hello world program". What I meant by "complete" is; where to get the API, how to set up the API, how to write the hello world UI, how to write the code for the UI, how to install the emulator/simulator and test it. For an example, if you take a Java / Android / C++ / C# book, the first chapter is a hello world program, the "complete note" which

How to test Mirror API Subscriptions

廉价感情. 提交于 2019-12-18 16:10:51
问题 The restrictions of a https callbackUrl and the nature of the subscriptions as a whole makes it seem like this is something that can only be done with a publicly accessible url. So far I have come across two potential solutions to make local development / debugging easier. The first is the Subscription Proxy service offered by google. This workaround essentially lets you remove the SSL restriction and proxy subscription callbacks to a custom URL. The second and most helpful way I have found

How to pin a bundle of cards

爱⌒轻易说出口 提交于 2019-12-14 01:54:58
问题 With a couple of timeline items sharing the same bundle ID, I create the bundle cover with: TimelineItem timelineCover = new TimelineItem(); timelineCover.setText("Help Options"); timelineCover.setBundleId(bundleId); timelineCover.setNotification(new NotificationConfig().setLevel("DEFAULT")); timelineCover.setIsBundleCover(true); timelineCover.setIsPinned(true); MirrorClient.insertTimelineItem(credential, timelineCover); It comes through to the timeline properly bundled but with isPinned =

Displaying Video on Webpage from Google Glass

守給你的承諾、 提交于 2019-12-14 00:39:06
问题 I just picked up my Glass this weekend! Very excited. :) I recorded a video with my Google Glass, shared it to my application, then with my web app made an oauth connection to the Mirror API and retrieved a video content type="video/mp4" and content URL (using PHP $attachment->getContentUrl()) that looks like this: http://redirector.googlevideo.com/videoplayback?id=f4046ce94ae5d248&itag=22&source=picasa&cmo=sensitive_content%3Dyes&ip=0.0.0.0&ipbits=0&expire=1378342900&sparams=id,itag,source

Insert Time line card using Mirror API, which has bundle inside bundle?

[亡魂溺海] 提交于 2019-12-13 23:51:31
问题 How to Insert Time line card using In C#.Net Mirror API, which has bundle inside bundle? In below code what I am doing is create a single bundle. What I want is item1 and item2 to be different bundles. Is is possible? Is there a solution? TimelineItem item = new TimelineItem() { Text = controller.Request.Form.Get("message"), BundleId = "112", IsBundleCover=true, Notification = new NotificationConfig() { Level = "DEFAULT" } }; TimelineItem item1 = new TimelineItem() { Text = "Amalan", BundleId

How can i get IP of my glass when it is connected by bluetooth to my mobile?

▼魔方 西西 提交于 2019-12-13 19:19:20
问题 I have my glass paired by bluetooth with my mobile. My mobile is connected to a WiFi network (and my glass isn't connected to WiFi, it uses the WiFi of my mobile). I know I can get IP local ip addres with this code: WifiManager wifiMgr = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiMgr.getConnectionInfo(); int ip = wifiInfo.getIpAddress(); String ipAddress = Formatter.formatIpAddress(ip); It's work OK if i run this code in a tablet o smartphone, but if i run it in my

The method execute() is undefined for the type Mirror.Accounts.Insert

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 18:28:32
问题 I am creating a server side Dynamic Web Project using Java and Eclipse IDE for Google Glass Mirror API. In my web project I have a lib folder under WEB-INF In the lib folder i have added the following .jar files google-api-client-1.18.0-rc-sources.jar google-api-services-mirror-v1-rev66-1.19.0.jar google-collections-1.0-rc2.jar google-http-client-1.18.0-rc.jar google-http-client-jackson-1.19.0.jar My server side code is @SuppressWarnings("serial") public class GlassAuthenticateUser extends

Detecting a user action on a custom menu to insert cards in a bundle

大兔子大兔子 提交于 2019-12-13 07:35:01
问题 I have a bundle with just a cover that i have inserted in my timeline using mirror API. Now what i want is when a user clicks on the bundle, i get a custom menu clicking on which the backend is called to insert a set of cards again in the same bundle. public class newsfeedbliss { static String bundleId = "lunchRoulette" + UUID.randomUUID(); private static ArrayList<String> newstext = new ArrayList<String>(); static final String PROD_BASE_URL = "https://newsfeedbliss.appspot.com"; private

Subscriptions not receiving timeline notification

。_饼干妹妹 提交于 2019-12-13 06:26:52
问题 I'm encountering the same problem described on this question - Subscriptions Not Receiving Timeline Notifications. The last time my app received a timeline notification was on 11/13. Here's what I did: Created my project using the ASP.NET Quick Start Deployed the project to a public facing web server, with HTTPS (https://www.bsudevtech.myhosting.me) When users authenticate on the web site, a timeline subscription is created - I have verified this by adding checkpoints throughout the app that