google-glass

How do I send bundled cards all at the same time?

帅比萌擦擦* 提交于 2019-12-10 04:06:18
问题 I've set up a Java application where I'm creating a bundle of 4 cards. The problem is that all the cards do not come in at once. Some times just one shows up, then a few seconds or minute later the other cards show up. How do I get them to all show up on the headset at the same time? edit: I tried HTML paging and that didn't work and now I think I'm more confused. So in my senario here I want to send a bunch of landmarks to the user that they can navigate to. I want all the landmarks in a

Google Glass upload files using http-client

为君一笑 提交于 2019-12-09 22:57:14
问题 I am trying to upload an image file using http-client from my Google Glass to my server but it always gets stuck at the httpclient.execute() method. I am not sure how should I approach uploading files from my Glass. This is what I have so far: httpClient = HttpUtils.getNewHttpsClient(); postRequest = new HttpPost(strURL); final File file= new File("mnt/sdcard/DCIM/Camera/12232.jpg"); s = new StringBuilder(); try { if(file.exists()) { final FileBody bin = new FileBody(file); final

Glass - Slow camera \ FileObserver notification - XE12 - using ACTION_IMAGE_CAPTURE

南笙酒味 提交于 2019-12-09 22:35:59
问题 I have basically implemented the new XE12\GDK2 cameramanager sample code to capture an image on application start. However, the notification to the FileObserver callback takes anywhere from 3 to 30 seconds to get the notification of the image file creation. Taking a picture using the default 'Take a Picture' app works just fine so I dont thin it is an OS\update issue. My app's behavior is like: - Take the picture - Tap to accept Wait 3 to 30 seconds - Get the callback and the imageview is

Is it possible to register a top-level intent in the Mirror API?

六眼飞鱼酱① 提交于 2019-12-09 15:55:46
问题 Example "top-level actions" would be "Google," "take a picture," etc. Is it possible using the Mirror API to register a custom top-level event? "OK Glass, crunchify me." A secondary question I have is if it's possible to take user speech. Using the "OK Glass, Google" example, the user says a query that Google takes and acts on. Is it possible to capture that for your custom action using the Mirror API? 回答1: This is not yet possible with the Glass client nor the Mirror API. However, there is

What is the correct Device Definition for Google Glass (for a simulator in Eclipse or Android studio)?

孤街醉人 提交于 2019-12-08 22:56:51
问题 Yes I will test on the actual device (when it arrives) but would be nice to know now: How to setup a device definition so I can run an emulator that is something like glass. Critical are: Size: What size does glass "report" itself as: Small, Normal, Large, XLarge Screen Ratio: notlong or Long? Density bucket: xxhdpi? or what? Other: does setting it up for DPad input help at all or come close to the nav on Glass? Other tips? Note : Yes I know about the mirror API playground, but I'm developing

Offline emulator for Google glass OS

有些话、适合烂在心里 提交于 2019-12-08 16:09:51
问题 I've found an online google glass emulator. Who knows does (or will) google provide any offline emulator for developers? 回答1: The Glass team is looking to provide an offline emulator for Glass, but this does not change the fact that you need Glass to develop for Glass. PY stated this at Google I/O 2013 - Voiding Your Warranty: Hacking Glass (33:40). 回答2: Try https://github.com/Scarygami/mirror-api it runs off GAE offline and it strings together Google's other existing API's. I hope that helps

Google Glass Time

假如想象 提交于 2019-12-08 13:43:03
问题 Is there a way to get the time in Google Glass pro grammatically? I am using System.currentTimeMillis(); but it gives me a really long number such as: 1403101657961. I want the actual time that the user is looking at when he turns on Glass. Thanks. 回答1: All you need to do is create a Date object like so: Date dt = new Date(System.currentTimeMillis()); If you want it as a formatted string you can take a look at SimpleDateFormat . 回答2: You can use the class SimpleDateFormat to format your time

Google glass returning NoClassDefFoundError for glass.widget.CardBuilder

為{幸葍}努か 提交于 2019-12-08 10:42:26
问题 I'm very new to Glass development yet have run into a frustrating problem which has pretty well halted my progress entirely. Upon building and running any Glass project, I am greeted with the error: java.lang.NoClassDefFoundError: com.google.android.glass.widget.CardBuilder This error occurs as soon as the CardBuilder class is accessed. I have imported the class and no errors appear during building, it is when the code is actually ran on the device that the issue occurs. Now interestingly,

How to run Google Glass Project on emulator?

[亡魂溺海] 提交于 2019-12-08 07:50:52
问题 I don't have a google glass device. But I am very interested to do apps for Google Glass. I want to run a Hello World in Google Glass without the use of device. I followed the tutorials for Google Glass. Then I found some sample projects of Google glass. Can Anyone tell me how to run a simple Google Glass Project on an emulator or without a device. And can you tell, Is there any alternative way to test the Glass APK developed by us without device. 回答1: First you need to set up Glass On mobile

How do you customise Glass contextual voice menu in an immersion *after* its initial setup?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:40:02
问题 I've successfully populated the contextual voice menu of my glassware immersion but I want to be able to change the menu after the initial set up in onPreparePanel() or onCreatePanelMenu() as described here: Programmatically populated contextual "ok glass" menu. Ideally one of the callbacks would be called after receiving the 'ok, glass' voice command but as far as I can tell, none of them are. Outcome, you're stuck with the version of the voice commands menu as it was the first time you cam