google-gdk

How can I read qr code inside GDK app?

僤鯓⒐⒋嵵緔 提交于 2020-01-02 13:56:16
问题 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? 回答1: QR code could be obtained from bitmap using this ZXing library To get the bitmap Glass camera intent could be used. 回答2: This worked for me. Intent objIntent = new Intent("com.google.zxing.client.android.SCAN"); objIntent.putExtra("SCAN_MODE", "QR_CODE_MODE"); startActivityForResult(objIntent, 0); 回答3: You can read QR using the library located at https://code.google.com

Google Glass Android Studio Gradle issues

落花浮王杯 提交于 2020-01-02 07:11:10
问题 I am trying to build my first Google Glass app, using Android Studio 0.5.4. But am getting a build error: Error:Module 'TestApplication-TestApplication': platform 'Google Inc.:Glass Development Kit Sneak Peek:15' not found. As you can see the GDK, and all necessary library files are installed. I have looked at a few different questions about this already, primarily Google Glass: GDK with Android Studio Android Studio || GDK 'hello word' || import com.google.android.glass.app.Card || Cannot

Bluetooth Pairing Google Glass

二次信任 提交于 2020-01-01 21:55:30
问题 Using Google Glass, I am able to discover Bluetooth devices and see their address and information. However, I cannot get the Glass to pair (bond) with them. Update Following the instructions on this page now I'm trying to get the bonding, but for some reason the BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals(action) is never happening. private void pairDevice(BluetoothDevice Ddevice) { Log.d("MY_LOG", "Try to pair " + Ddevice.getName()); try{ Method m = Ddevice.getClass().getMethod(

Google Glass SDK: Gradle sync failed: Cause: failed to find target Google Inc.:Glass Development Kit Preview:19

若如初见. 提交于 2019-12-31 04:37:12
问题 I am getting this error after importing and trying to build the gdk-apidemo-sample-master in Android Studio: Gradle sync failed: Cause: failed to find target Google Inc.:Glass Development Kit Preview:19 Please advice. Thanks 回答1: I had the same problem and seems to be gradle doesn't support GDK in the newer versions. Open Android Studio and click open, under File menu, and select the directory of your project. In Top-Level build.gradle file, change the 8th line with classpath 'com.android

Error:Module 'App name': platform 'android-15' not found

痴心易碎 提交于 2019-12-25 08:05:02
问题 I am trying to start a project for google glass in android studio. I have all the SDK platforms required but still android studio keeps on giving me this error. Does anyone have any clue whats going on? 回答1: Sooooo...... remember to make changes in your build.gradle change compileSdkVersion 15 to compileSdkVersion "Google Inc.:Glass Development Kit Sneak Peek:15" 回答2: I changed the compileSdkVersion to a lower one, synced, that failed, changed it back to the previous value, synced and it

Sending Email in Google Glass

孤人 提交于 2019-12-25 07:48:28
问题 I'm trying to send a email to a (at this moment) hardcoded email adress when a streaming link is generated. I tried using the piece of code that was accepted as awnser HERE However I'm getting a error saying: No provider for smtp does anyone have a clue on what could be causing this? I dragged the needed .jar files into my libs folder. In my gradle.build file I added them to be compiled compile files('libs/activation.jar') compile files('libs/additionnal.jar') compile files('libs/mail.jar')

Hello World For Google Glass

≯℡__Kan透↙ 提交于 2019-12-25 07:09:45
问题 I'm trying to build a simple Hello World GDK program for Google Glass. I've looked up everywhere, but all the samples I could find used "Timeline Manager", which was removed by Google after XE 16. What I'm trying to do is to create a live card that shows texts (Hello world!) in the middle. I've tried to modify codes from HERE (HuskyHuskie's answer) and HERE (IsabelHM's answer) However, no matter what I did, no option or voice command appeared on the glass even though the console showed that

How to show alert dialogs at any time on a high-frequency live card?

喜夏-厌秋 提交于 2019-12-25 03:38:07
问题 I'm working on Glassware that needs to be able to display alert dialogs at any time during the lifespan of the Glassware. As can be seen on Google's GDK development guide, this requires a valid Context object. However, I'm using the high-frequency live card design paradigm, and thus it uses a Service (rather than an Activity ) as its main class. If I try to pass the service as the context to the alert dialog constructor, I get a BadTokenException . Is there a recommended way to show alert

gdk.jar library file download

女生的网名这么多〃 提交于 2019-12-25 01:59:36
问题 I have been facing problem with gdk.jar library file add-on in sdk folder. I have tried a sample program for google glass used in android virtual devices, from which I have added a gdk.jar file in project but I don't know why that jar file was not added in sdk add-on folder. so I get the error like: 04-12 13:16:17.890: E/AndroidRuntime(3721): java.lang.NoClassDefFoundError: com.google.android.glass.app.Card help me get me correct answer. or else post the link download the gdk.jar library file

Renderscript support

谁都会走 提交于 2019-12-25 01:53:52
问题 Does the GDK support Renderscript? I wanted to run some image processing algorithms on Glass's Camera. However, the process crashes with a SIGSEGV fault. Here is the stack trace: 11-23 23:48:39.021: VERBOSE/RenderScript(1568): rsContextCreate dev=0x663468 11-23 23:48:39.021: VERBOSE/RenderScript(1568): 0x69a550 Launching thread(s), CPUs 2 11-23 23:48:39.060: VERBOSE/ScriptC(1568): Create script for resource = oilpaintingeffect 11-23 23:48:39.060: INFO/bcc(1568): LIBBCC build time: 2013/11/04