google-gdk

How do I create a dark Google Maps image for Google Glass?

我的未来我决定 提交于 2019-12-03 16:41:52
I need to create a dark/inverted map image for use on Google Glass, since the standard Google static maps image is too bright when displayed on the screen. How can I customize the map theme to look good on Glass? The Google Static Maps API provides a number of customization options to change the colors of the map features. Here's an example of an activity that loads a dark/inverted static map image and displays it in a full-screen ImageView on Glass. The description of the query parameters used to construct the URL can be found in the documentation for the Google Maps Static Maps API . public

Google Glass is not listed as Android Device by ADB

一笑奈何 提交于 2019-12-03 09:21:16
问题 I'm trying to deploy a glassware .APK to a Google Glass device but it doesn't listed by ADB. I followed several guides which describe how to connect the Google Glass to the Windows 8 OS: glassdev codeproject stackoverflow I did the following in order to connect the device to my PC. 1.Installed USB driver thought Android SDK Manager 2.Updated android_winusb.inf file and included required lines to identify the device: https://dl.dropboxusercontent.com/u/83972129/android_winusb.inf these ids I

HTTP Requests in Glass GDK

青春壹個敷衍的年華 提交于 2019-12-03 08:52:42
I am implementing a GDK application and need to do in my application some HTTP Post requests. Do I send the HTTP requests the same way as on android phone or there is some other way of doing it? (I have tried the code that I am using on my phone and it's not working for glass.) thanks for your help in advance. You can make any post request like in smartphones, but ensure you make the requests using an AsyncTask. For example: private class SendPostTask extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { // Make your request POST here. Example:

Way to nest multiple voice triggers when launching an app with GDK

故事扮演 提交于 2019-12-03 08:26:24
问题 Is there a way to nest voice triggers when launching an app on Google Glass using the GDK? For example instead of just saying "ok, glass" -> "What's its power level?" I'd like to have the app present an option. For example "ok, glass" -> "What's its power level?" -> "Over 9000" OR "Under 9000". Any help would be great! 回答1: If you have multiple activities/services installed on Glass that have the same voice trigger intent filter, all of their names (based on the android:label attribute of the

How to play YouTube video in WebView on Google Glass

和自甴很熟 提交于 2019-12-03 08:05:53
I have code like this: setContentView(R.layout.webview); webView = (WebView) findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("https://www.youtube.com/watch?v=_Z5-P9v3F8w"); It'll show the youtube video with the Play button, but none of the Glass gesture can make the video play. Any ideas? Thanks! Finally figured out how to play Youtube video on Glass! Intent i = new Intent(); i.setAction("com.google.glass.action.VIDEOPLAYER"); i.putExtra("video_url", "https://m.youtube.com/watch?v=5bWSgFnoCOk"); startActivity(i); Using WebView can't play the video,

Create “ok glass” style menu, within glass app

有些话、适合烂在心里 提交于 2019-12-03 06:20:59
问题 I have just begun developing for Google Glass, and I knew the GDK if fairly new so this may not be possible yet, but here's what I'm trying to to: As with the "make a call" prompt or the "send a message to" prompts on the "okay glass" screen, I would like my app to have more voice selected options when you select it with your voice. With the two examples, you will see a list of contacts, which you can nod your head up and down to see more of, and the app will only take further actions one you

Google Glass is not listed as Android Device by ADB

空扰寡人 提交于 2019-12-02 23:43:14
I'm trying to deploy a glassware .APK to a Google Glass device but it doesn't listed by ADB. I followed several guides which describe how to connect the Google Glass to the Windows 8 OS: glassdev codeproject stackoverflow I did the following in order to connect the device to my PC. 1.Installed USB driver thought Android SDK Manager 2.Updated android_winusb.inf file and included required lines to identify the device: https://dl.dropboxusercontent.com/u/83972129/android_winusb.inf these ids I found under the device "hardware id" setting: USB\VID_18D1&PID_9001&REV_0216 USB\VID_18D1&PID_9001 3

receive UDP data on Google Glass with GDK

耗尽温柔 提交于 2019-12-02 15:21:11
问题 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

how to upload to your code to Google Glass?

点点圈 提交于 2019-12-02 15:12:04
问题 I'm in the process of learning android and the GDK, I have "Android developer tools" installed along with "SDK Manager". I made my first hello world app, but I don't know how to go about linking up to my Google Glass from my Windows 7 PC to upload the code. Does anyone have a good tutorial or step by step instructions would be greatly appreciated! Thanks To give more information, I followed the steps on youtube (http://www.youtube.com/watch?v=boj0f_O3i88) to install and prepare a hello world

W/IMediaDeathNotifier﹕ media server died

杀马特。学长 韩版系。学妹 提交于 2019-12-02 13:03:19
问题 I'm trying to record audio using Google Glass MIC but I keep getting W/IMediaDeathNotifier﹕ media server died error. Thoughts? It should start recording on the first touch and stops on the second touch, but the error happens on the first click. package com.google.android.glass.sample.charades; import android.media.MediaRecorder; import java.io.IOException; import android.util.Log; import android.os.Environment; public class SlideshowActivity extends Activity { private static final String LOG