google-glass

koush AndroidAsync Socket.IO : Looks like ConnectCallback() is not triggered on Google Glass

流过昼夜 提交于 2019-12-11 03:48:48
问题 Im trying to let my Google Glass and my android phone connect to a NodeJs server that Im running on my computer, so that I can send messages from my android phone to my Google Glass. For this I'm using koush's AndroidAsync library, which works great on my android phone and I have absolutely no trouble connecting my phone to the NodeJS server with this library. However, the same code doesnt seem to work on my Google Glass. My Google Glass DOES connect, because the on connection EventHandler of

How to pass data from Normal Android app to Google glass app and viceversa?

匆匆过客 提交于 2019-12-11 02:12:26
问题 I have no idea on GoogleGlass just searching on it. I have checked below links but I think below links are deprecated and I am unable to find a way to pass the data.I have searched for more than 4 days but unable to find a way to pass the data. Want to create apps for google glass. https://github.com/Scarygami/mirror-api how to connect Android phone with Google Glass for data sharing https://developers.google.com/glass/develop/gdk/quick-start https://github.com/NathanielWaggoner

How to disable WiFi on Glass for testing?

这一生的挚爱 提交于 2019-12-11 01:55:10
问题 I want to develop a receiver for Google Glass which will detect the WiFi state of Glass and depending on that state show some information to user. The receiver will listen for android.net.wifi.WIFI_STATE_CHANGED so that I can catch the event and after that check the status of the internet. It will not only detect the internet availability but will also show if Glass is timing out when pinging any specific IP address from any apps of glass. I have tested the receiver on another Android device

errors with gradle in android studio

会有一股神秘感。 提交于 2019-12-11 00:52:51
问题 I am trying to build the project and run it in my google glass but when ever i am trying to build it is showing that Error:(20, 0) Gradle DSL method not found: 'runProguard()' Possible causes: The project 'gdk-stopwatch-sample' may be using a version of Gradle that does not contain the method. Gradle settings The build file may be missing a Gradle plugin. Apply Gradle plugin but i have installed the latest gradle plugin i.e 2.13, changed the classpath in build.gradle to 'com.android.tools

How to add another option to the share functionality of Google Glass?

笑着哭i 提交于 2019-12-10 22:18:44
问题 I am interested to add my service into the share functionality of the Google Glass, my flow is below: 1. Take photo / Record video 2. Share with -> My service 3. the photo or video should be uploaded to my site Is this functionality possible? it is very similar to Facebook and G+ share options. I will be happy to know how to do it, Thanks. 回答1: What you are looking for is what the Mirror API calls a Contact. Your Glassware can setup one or more Contacts, specifying what content type can be

Google Glass search in language other than English?

ⅰ亾dé卋堺 提交于 2019-12-10 21:35:44
问题 I have looked through the web and not found any information about if the Google Glass will have speech recognition in other languages than English? Like Google Now for example has a fine working recognition for Swedish. Or do I need to implement some third-party recognition myself? If anyone in the Google Glass Team has this info, this would be nice to know! Thanx Joakim 回答1: I'm not on the team, but the usual response is that the focus right now is the US only and that they don't comment on

RecognizerIntent.ACTION_RECOGNIZE_SPEECH blocked when a tap occurs

旧街凉风 提交于 2019-12-10 17:15:07
问题 In my main activity I launch a new Intent: Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "What would you like to find?\n For example \"Open heart surgery\""); startActivityForResult(intent, SPEECH_REQUEST); Then I retrieve the keywords that were spoken here: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == SPEECH_REQUEST && resultCode == RESULT_OK) { List<String>

Can we have different menu items for cards formed using htmlPages attribute of the timeline?

偶尔善良 提交于 2019-12-10 14:45:56
问题 I'm creating a bundle using timeline.html as my cover page and providing other sub-pages using the timeline.htmlPages attribute. I want to have different menu items for the cover page as well as for each of the sub-pages. Currently I dont' see any way to have a menuItem for each htmlPage and/or the cover page. Am I missing something ? I have a work around for this which I did during Glass Foundry : I created a random bundle id, then i looped over all my html pages and using the same bundle id

No connectivity message in “ok glass” menu

爱⌒轻易说出口 提交于 2019-12-10 11:14:56
问题 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? 回答1: You can do this by adding the network constraint to your voice trigger, as

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

梦想的初衷 提交于 2019-12-10 10:26:52
问题 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