google-glass

Google Glass GDK: How to Communicate with Android Device

随声附和 提交于 2019-11-26 18:32:20
I'm looking for a way to send data between my Android Device and Google Glass that doesn't rely on Cloud API's. Is this supported? I see the Bluetooth connections in the My Glass app, which makes me think it can be done. Is there an example source code that shows how this is done? Or do I have to decompile the MyGlass app to figure it out? Is there a preferred method for doing this kind of data transfer? Ideally I'd like to transfer data in both directions. Ok, for the requesters.... EDIT: The code below still works, but I've put it into a git repo for those who are interested... https:/

Google Glass preview image scrambled with new XE10 release

江枫思渺然 提交于 2019-11-26 15:46:36
问题 This occurs using a few apks that make use of the camera (e.g., zxing, opencv). It displays a glitched image in the preview but it is still a function of what the camera sees so it appears to be an encoding mismatch. The native camera preview works fine, so the internal apps do not exhibit this problem. 回答1: For now, please try adding the following workaround after you acquire the Camera but before you setup and start the preview: Camera.Parameters params = camera.getParameters(); params

Is there an Android based Google Glass Emulator?

三世轮回 提交于 2019-11-26 11:53:55
问题 Is it possible to define an Android Virtual Device for use to develop Google Glass apps (until the devices become widely available)? 回答1: There isn't an out the box emulator. You can use the playground to preview your cards, this will show you how your card will be laid out depending on what attributes you provide in your timeline post object. On the right. Just switch that view on the right to HTML if you want to provide a custom HTML template for your cards. 回答2: There's no official Glass

Why is my voice command missing from the ok glass menu in XE16?

可紊 提交于 2019-11-26 11:45:19
I had a Glassware that launched using a voice command on the ok glass menu. It worked great in XE12, but in XE16 it does not show up in the main menu. Here's a snippet from my AndroidManifest.xml showing my voice command configuration: <service android:name="com.mimming.sugarglider.MapDisplayService" android:label="@string/app_name" android:enabled="true"> <intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/show_map" /> </service> And here's the contents

Glass voice command nearest match from given list

泄露秘密 提交于 2019-11-26 07:34:43
问题 With Glass you can launch an app via the \'OK, Glass\' menu and it seems to pick the nearest match unless a command is miles off, and you can obviously see the list of commands. Is there anyway from within the app, or from the voice prompt (after the initial app trigger) to have a similar list given and return the nearest match. Random (non-real world) example, an app that shows you a colour, \"OK Glass, show the colour red\" \'show the colour\' could be your voice trigger and seems to be

Google Glass GDK: How to Communicate with Android Device

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 06:27:46
问题 I\'m looking for a way to send data between my Android Device and Google Glass that doesn\'t rely on Cloud API\'s. Is this supported? I see the Bluetooth connections in the My Glass app, which makes me think it can be done. Is there an example source code that shows how this is done? Or do I have to decompile the MyGlass app to figure it out? Is there a preferred method for doing this kind of data transfer? Ideally I\'d like to transfer data in both directions. 回答1: Ok, for the requesters....

Why is my voice command missing from the ok glass menu in XE16?

。_饼干妹妹 提交于 2019-11-26 02:35:04
问题 I had a Glassware that launched using a voice command on the ok glass menu. It worked great in XE12, but in XE16 it does not show up in the main menu. Here\'s a snippet from my AndroidManifest.xml showing my voice command configuration: <service android:name=\"com.mimming.sugarglider.MapDisplayService\" android:label=\"@string/app_name\" android:enabled=\"true\"> <intent-filter> <action android:name=\"com.google.android.glass.action.VOICE_TRIGGER\" /> </intent-filter> <meta-data android:name=