google-glass

How can I read qr code inside GDK app?

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:32:28
I want to read qr code from GDK app to get authorization token. Is there any build in methods to read QR codes in GDK? QR code could be obtained from bitmap using this ZXing library To get the bitmap Glass camera intent could be used. Acarin This worked for me. Intent objIntent = new Intent("com.google.zxing.client.android.SCAN"); objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE"); startActivityForResult(objIntent, 0); You can read QR using the library located at https://code.google.com/p/barcodefraglibv2/wiki/HowTo Have tested it to work on Glass without any problem. 来源: https://stackoverflow

Programmatically populated contextual “ok glass” menu

一世执手 提交于 2019-12-06 11:32:17
问题 Is there any way to populate the custom "ok glass" menu in my glassware programmatically? I have an application where the user will be in an immersion and interact with the system mainly by voice commands. The immersion consists of a CardScrollView displaying different sets of data. These sets are added and removed dynamically from a bluetooth service talking to a phone and the glass unit can't know in advance what new sets will appear. What I want the user to be able to do is to list all

Google Glass: Performing “Click” event or something similar

荒凉一梦 提交于 2019-12-06 09:49:14
问题 Please have a look at the following code <article style="left: 640px; visibility: visible;"> <section> <table> <tbody><tr><td><center>154 de 500</center></td></tr> <tr><td>First Page</td></tr> </tbody></table> </section> </article> This generates the following UI When I select the "First Page" text, I need that text to change into "You Clicked This". How can I do this? Is there any event handler for click or any other way to do this? I am sorry if this is a simple question, this is the first

No connectivity message in “ok glass” menu

自古美人都是妖i 提交于 2019-12-06 07:56:07
I am developing an app which adds a live card into the timeline when the user selects the option from menu, like the sample apps do. I noticed that, when you don't have any connectivity, the native apps on the glass, like Google, show "No network connectivity" message in the "ok glass" menu and it is not possible to run them. I would like to replicate this behavior. Is there a way to do this with the GDK API? You can do this by adding the network constraint to your voice trigger, as described in the GDK Voice Input documentation . For example: <trigger keyword="@string/your_voice_trigger">

Google Mirror API throwing BadStatusLine exception (Python)

自作多情 提交于 2019-12-06 06:33:40
问题 When using the Mirror API, I randomly get a "BadStatusLine" exception from several API calls, including timeline().insert and timeline.list . From trolling around SO for simliar problems in python, I suspect this is some kind of malformed response from the server. It seems to happen randomly and possibly after a period of not using the API. Here's a sample stack trace: Traceback (most recent call last): File "service.py", line 61, in receive_message self.process_user_chat(msg) File "service

Class not found error for any glass api

空扰寡人 提交于 2019-12-06 06:06:00
问题 I configure eclipse ADT for glass development successfully. Then I create a sample project and try to develop google glass card or timelineitem. when I compile and run, an error occurred from android tuntime java.lang.NoClassDefFoundError: com.google.android.glass.app.Card this error also occurring for com.google.android.glass.timeline.TimelineManager Error Log How can I solve it? 回答1: You have to set your project to compile with the Glass GDK. Make sure you're targeting 15, have the GDK

Glass Development Kit installed but not found by Android Studio

元气小坏坏 提交于 2019-12-06 05:57:10
I get a Gradle Sync error saying "Failed to set up SDK": Error: Module 'app': platform 'Google Inc.:Glass Development Kit Preview:19' not found. I have Glass Development Kit Preview from Android API 19 installed. My build.gradle(Module: app) is updated to reflect that: compileSdkVersion 'Google Inc.:Glass Development Kit Preview:19' buildToolsVersion '25.0.0' I've looked at similar problems and I seem to have my build.gradle set up properly. How can I get the Gradle Sync to recognize my GDK? You can try using the base build Tools for GDK: android { compileSdkVersion "Google Inc.:Glass

Google Glass isn't showing up as a device on eclipse under DDMS.

梦想的初衷 提交于 2019-12-06 04:59:39
问题 I edited the .inf file in my C:adt-bundle-windows-x86_64-20130917\sdk\extras\google\usb_driver directory. I installed the drivers for Windows 7 through that same directory. My Google Glass is in debug mode. The device is plugged in, yet it isn't showing up in my DDMS Devices list? Am I missing something? 回答1: I was able to install the driver by following the steps in matthew06854's post here. Although the driver seemed to install correctly, I could not see the device under DDMS in Eclipse. I

What is android:immersive attribute in Android manifest file?

微笑、不失礼 提交于 2019-12-06 03:19:19
I was developing an app for Google glass and i was facing a problem with my activity. They ended when i didn't interact with them for 7 to 10 seconds. After the screen turned off and i tapped my glass to wake it up again, my activity would disappear and i was on ok glass Screen. I searched a lot but couldn't find any solution to this. Then i came across this android:immersive attribute in Activity in AndroidManifest.xml file. After using android:immersive="true" in my activity (AndroidManifest.xml file). My activity stays alive even after screen is timed out and my activity resumes when i tap

GoogleGlass : Add image in background : unsupported image scheme: http

妖精的绣舞 提交于 2019-12-06 02:39:31
I have a problem when i try to set an image URL on a Card . Here is the error log : unsupported image scheme: http 01-16 14:11:50.188: E/AndroidRuntime(2851): FATAL EXCEPTION: main 01-16 14:11:50.188: E/AndroidRuntime(2851): java.lang.IllegalArgumentException: unsupported image scheme: http 01-16 14:11:50.188: E/AndroidRuntime(2851): at com.google.android.glass.app.Card.addImage(Card.java:178) 01-16 14:11:50.188: E/AndroidRuntime(2851): at com.example.cupofnewsglass.MainActivity.processFinish(MainActivity.java:112) Here is my code : // Get img of article, it return an string like : http://img.