google-glass

How to launch a regular Activity on Google Glass

雨燕双飞 提交于 2020-01-01 13:38:52
问题 I have been looking through the github examples for google glass and my code doesn't really look very different. With the exception of launching a regular TextView , my code should theoretically work. My Activity code is: package com.helloglass; import android.os.Bundle; import android.app.Activity; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } My

How to launch a regular Activity on Google Glass

限于喜欢 提交于 2020-01-01 13:36:17
问题 I have been looking through the github examples for google glass and my code doesn't really look very different. With the exception of launching a regular TextView , my code should theoretically work. My Activity code is: package com.helloglass; import android.os.Bundle; import android.app.Activity; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } My

Google Glass Immersion Custom Layout without CardBuilder.Layout.EMBED_INSIDE

匆匆过客 提交于 2019-12-31 05:59:29
问题 I am trying to build an immersion via a custom XML layout. My understanding is if I use CardBuilder, I would need to embed_inside but I wanted to use the entire screen with my XML layout. It appeared that this was previously possible using card however that interface has been depreciated. I may just be missing a basic Glass concept, but every example or document I have read so far accesses via CardBuilder.Layout and uses the predefined glass layouts. 回答1: You don't need to use the CardBuilder

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

Can't run sample apps on Glass, device not visible in Android Device Chooser

谁说胖子不能爱 提交于 2019-12-25 06:46:03
问题 (Incase the screenshots look too small, please right-click and 'open image in a new tab') I was following the steps here - https://developers.google.com/glass/develop/gdk/quick-start I turned on debugging on the Glass. Downloaded ADT. Connected the Glass via USB to my Mac - I saw it in the DDMS perspective as you can see in the screenshot below: Now I opened a sample project called 'Timer' and tried to run it as an 'Android application', when it asked me to choose an 'Android device' or

Unable to get the card index

你。 提交于 2019-12-25 04:31:20
问题 I am trying to get the index of the card which is active on the screen with this code. import java.util.ArrayList; import java.util.Arrays; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import com.google.android.glass.app.Card; import com.google.android.glass.touchpad.Gesture;

Unable to get the card index

大憨熊 提交于 2019-12-25 04:31:07
问题 I am trying to get the index of the card which is active on the screen with this code. import java.util.ArrayList; import java.util.Arrays; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import com.google.android.glass.app.Card; import com.google.android.glass.touchpad.Gesture;

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