google-gdk

receive UDP data on Google Glass with GDK

时光总嘲笑我的痴心妄想 提交于 2019-12-02 03:40:07
Any recommendations for receiving UDP data from an app running on Google Glass? I need to integrate with an existing system. This system does UDP broadcasts to the local subnet. The Glass will be on the same subnet and the app running on the Glass just needs to listen on a port for UDP packets and then display information contained in them to the user. I'm integrating with an existing system which I don't have the freedom to change at this point and so want to just receive UDP (as opposed to using other, perhaps better, higher level frameworks). Looking around the docs I see network related

Add a sharing contact with GDK

老子叫甜甜 提交于 2019-12-02 00:53:46
问题 I was looking at the Google Glass GDK, and was looking if you could add a sharing contact from your appliction. I didn't see any references to that in the official documents, and I was wondering if you could do this. Thank you for your help. 回答1: The current sneak peek of the GDK does not support adding share contacts yet. If you are interested in this feature, please file a feature request in our issue tracker! 来源: https://stackoverflow.com/questions/20205734/add-a-sharing-contact-with-gdk

Google Glass GDK backward compatibility?

懵懂的女人 提交于 2019-12-02 00:35:57
问题 I just tried out the updated gdk on my glass XE 20.1 and my testing app crashed because the new api is not available. CardBuilder card = new CardBuilder(this, CardBuilder.Layout.TEXT); (The old Card constructor is deprecated. Builder pattern is replacing it.) Log: 09-09 00:27:16.239 1992-1992/com.prat.testgdk E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.prat.testgdk, PID: 1992 java.lang.NoClassDefFoundError: com.google.android.glass.widget.CardBuilder at com.prat.testgdk.MainActivity

Google Glass (Not installed)

浪子不回头ぞ 提交于 2019-12-02 00:05:36
I am new to Android Studio and google-Glass. I am trying to create a knew project that will use google-glass but my problem is when I have to Check/select glass it is Disabled and I do not know how to fix this problem. See the Image below. and here is my SDK that shows that i have installed APK 19. and with the Image below it shows that the glass does appear on Android Studio can anyone please help me if the is something wrong that i am doing. will appreciate your Help. In my case, I needed to make sure I also installed the latest Android SDK Tools, Android SDK Platform-tools, and Android SDK

Google Glass GDK backward compatibility?

心已入冬 提交于 2019-12-01 22:36:34
I just tried out the updated gdk on my glass XE 20.1 and my testing app crashed because the new api is not available. CardBuilder card = new CardBuilder(this, CardBuilder.Layout.TEXT); (The old Card constructor is deprecated. Builder pattern is replacing it.) Log: 09-09 00:27:16.239 1992-1992/com.prat.testgdk E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.prat.testgdk, PID: 1992 java.lang.NoClassDefFoundError: com.google.android.glass.widget.CardBuilder at com.prat.testgdk.MainActivity.buildView(MainActivity.java:95) at com.prat.testgdk.MainActivity.onCreate(MainActivity.java:40) On

How to check if Google Glass is connected to internet using GDK

若如初见. 提交于 2019-12-01 21:29:38
Is there a way to detect if Google Glass is connected to the internet at runtime? For instance, I often get the message "Can't reach Google right now" when using voice input in my app. Instead, I would like to preemptively intercept the condition that would cause that message and use default values rather than ask for voice input. After searching for a while, the only thing I could find was a solution to the same question for Android in general: private boolean isConnected() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);

HelloWorld for Google Glass

一曲冷凌霜 提交于 2019-12-01 19:59:16
I'm trying to make a HelloWorld application for Google Glass by using the GDK provided. This is the entire codestack, I'm trying to work out the way to program this. Compiling doesn't give any errors but running it does. package leagueMatch; import com.google.android.glass.timeline.LiveCard; import com.google.android.glass.timeline.TimelineManager; import com.luisdelarosa.helloglass.R; import android.os.Bundle; import android.os.IBinder; import android.app.Activity; import android.app.Service; import android.content.Intent; import android.graphics.Color; import android.view.Menu; import

HelloWorld for Google Glass

好久不见. 提交于 2019-12-01 19:19:41
问题 I'm trying to make a HelloWorld application for Google Glass by using the GDK provided. This is the entire codestack, I'm trying to work out the way to program this. Compiling doesn't give any errors but running it does. package leagueMatch; import com.google.android.glass.timeline.LiveCard; import com.google.android.glass.timeline.TimelineManager; import com.luisdelarosa.helloglass.R; import android.os.Bundle; import android.os.IBinder; import android.app.Activity; import android.app.Service

EyeGestures NOT working in 19.1

天大地大妈咪最大 提交于 2019-12-01 13:22:12
I built an app to recognize EyeGestures using https://github.com/thorikawa/EyeGestureLib and it was working great in XE18.3 But after the 19.1 update, I'm getting an error that certain virtual methods were unable to resolve. However, these methods DO exist in my class EyeGestureManager. Is this due to the update? Is there something I can do to fix this for XE19.1 or do I have to wait until GDK officially supports eye gestures? I/dalvikvm( 1829): Could not find method com.google.android.glass.eye.EyeGesture Manager.stopDetector, referenced from method com.polysfactory.eyegesturedemo.Mai

Detecting whether Glassware was launched via voice command or the touch menu

妖精的绣舞 提交于 2019-12-01 09:20:00
问题 Is it possible to have different behaviors when a glassware is launched via "OK Glass" voice command vs touch menu selection? Specifically we are trying to prompt voice recognition if the glassware is launched with "OK Glass" voice command, otherwise go direct to the glassware if it is launched from the touch menu. Or, is there a way for an app to know in which way it was launched? We are trying to emulate what Google Play Music Glassware does. 回答1: The GDK does not yet provide a way to do