google-glass

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

ASP.NET MVC5 Google APIs GoogleWebAuthorizationBroker.AuthorizeAsync works locally but not deployed to IIS

心已入冬 提交于 2019-12-02 01:48:47
I'm having an odd problem trying to get an MVC5 app to work with the Google Mirror API when it's deployed (or any google API for that matter). This is the code I am struggling to get working: UserCredential credentials = GoogleWebAuthorizationBroker.AuthorizeAsync( new ClientSecrets { ClientId = "my_client_id", ClientSecret = "my_client_Secret" }, new[] { MirrorService.Scope.GlassTimeline }, "username", CancellationToken.None, new GlassDataStore() ).Result; When I run this locally from Visual Studio 2013, everything works perfectly - the above code runs and authenticates, persists to the

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 (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

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

Attaching video with video/vnd.google-glass.stream-url after Update XE6

拟墨画扇 提交于 2019-12-01 13:00:12
Attaching video with the XE6 Google Glass Update is getting stuck. The code I'm using is this: String videoUrl = "http://www.youtube.com/watch?v=9bZkp7q19f0"; if (videoUrl != null) { String contentType = "video/vnd.google-glass.stream-url"; InputStream is = new ByteArrayInputStream( videoUrl.getBytes( ) ); MirrorClient.insertTimelineItem(credential, timelineItem, contentType, is); } Not sure what I'm doing wrong, but the video is still trying to download and it's killing my battery ... I think the issue is that you're trying to stream a YouTube page instead of stream the video from that page

How to install Speech to text in Google Glass?

橙三吉。 提交于 2019-12-01 11:18:22
I developed an app using the Android 4.1.2 and speech to text is working well but when I tried it on the Google Glass it is not working(Activity not found exception). This is my Speech to text Code Intent intent = new Intent( RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US"); try { startActivityForResult(intent, requestCode); } catch (ActivityNotFoundException a) { Toast t = Toast.makeText(getApplicationContext(), "Opps! Your device doesn't support Speech to Text", Toast.LENGTH_SHORT); } I tried to install the Speech Synthesis apk