google-gdk

Debugging GDK with breakpoints

为君一笑 提交于 2020-01-24 21:49:12
问题 I'm experimenting few GDK samples and developed my own GDK app. But having trouble to debug it. Right now I'm left with only log.d option to monitor the logs while testing it with connected glass device. Is there any other way to debug GDK app in eclipse? like step by step.. 回答1: Debugging with GDK is the same way you would debug a normal android app. Start here http://developer.android.com/tools/debugging/debugging-projects.html 回答2: Debugging is the same as in Android all you need to change

EyeGestures NOT working in 19.1

对着背影说爱祢 提交于 2020-01-21 10:14:07
问题 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

How can I brighten the screen when opening an Activity in my Glass GDK immersion application?

ぐ巨炮叔叔 提交于 2020-01-13 09:23:13
问题 I have a GDK immersion application, where the launcher Activity acquires a SCREEN_DIM_WAKE_LOCK WakeLock . The app also has a Service which will receive chat messages and starts an Intent for an Activity to display each one. Whenever the message Activity is opened, I want to brighten the screen. However, all of the methods I have found do not seem to work. For example, adding the following into onResume has no effect: Settings.System.putInt(getContentResolver(), SCREEN_BRIGHTNESS_MODE, SCREEN

How to send your .apk Glass Application for your client to see?

亡梦爱人 提交于 2020-01-13 08:38:08
问题 I'm jumping head first into Android for Google Glass development and I'd like to know how I can let my client see the .apk that I'm working on. My client owns a pair of Google Glass too but lives far away. So far, the only way I have been able to upload to Glass is using ADT, Run As -> Android Application when my Glass is connected by USB. How can I put the Glassware (apk) up online so he can "load it up" into his glass remotely? Or deploy it to his glass? I read Send the .apk file to client

Glassware uninstalled after google glass reboot

僤鯓⒐⒋嵵緔 提交于 2020-01-13 06:44:11
问题 I have created a test build of a GDK Glass app that I want to deliver to a few test users. However the app disappears after a reboot. Logcat shows this: 08-19 18:18:18.256: I/GlasswareSyncAdapter(978): Uninstalling Glassware ID #6DBADA7634397F00 (com.example.demo). A look at the issue tracker explains that this is caused due to the fact that the MyGlass app didn't install this app and that the app thus isn't linked to the user's account. Are there any workarounds? With a submission process of

Google Glass Android : How can i use voice trigger from current Activity (to switch cards from cardscroller)

好久不见. 提交于 2020-01-06 16:59:27
问题 I am using a cardscrollview in an Activity to show text and pitcures on different cards. Today i can scroll by using touchpad and swipe left or right but i want to scroll between cards using voice . Example : when i say "next" i would like to scroll forward, and when i say "prev" i would like to scroll backwards. I saw different answers on stackoverflow like this one or this one and it looks like you can't include GlassVoice.jar anymore (tried it but not working). I saw on google

How to authenticate when using VideoPlayer?

不羁的心 提交于 2020-01-06 13:53:07
问题 I am implementing the following solution Play a video in Glass Intent i = new Intent(); i.setAction("com.google.glass.action.VIDEOPLAYER"); i.putExtra("video_url", "..."); startActivity(i); But I am getting hit with a 401 error. To authenticate I need to include my key/value pair in header. How do I go about doing that, with intents? 10-16 14:58:55.229 126-10199/? I/ChromiumHTTPDataSourceSupport﹕ Server responded with http status 401 10-16 14:58:55.229 126-10470/? I/AwesomePlayer﹕

How to authenticate when using VideoPlayer?

ぃ、小莉子 提交于 2020-01-06 13:51:49
问题 I am implementing the following solution Play a video in Glass Intent i = new Intent(); i.setAction("com.google.glass.action.VIDEOPLAYER"); i.putExtra("video_url", "..."); startActivity(i); But I am getting hit with a 401 error. To authenticate I need to include my key/value pair in header. How do I go about doing that, with intents? 10-16 14:58:55.229 126-10199/? I/ChromiumHTTPDataSourceSupport﹕ Server responded with http status 401 10-16 14:58:55.229 126-10470/? I/AwesomePlayer﹕

NullPointerException when calling Card.addImage(Uri)

不问归期 提交于 2020-01-06 01:51:11
问题 I'm getting a NullPointerException when attempting to add an image Uri to the Card . Any thoughts? Is it a bug in the GDK? This method is documented. Relevant Code: for (CardPresenter cardPresenter : mCardPresenters) { Card card = new Card(this); card.setText(cardPresenter.getText()); card.setInfo(cardPresenter.getFooter()); for (Uri uri : cardPresenter.getImages()) { if (uri != null) { Log.w(TAG, "ImageUri: " + uri.toString()); card.addImage(uri); // <!------------------- ERROR } else { Log

Back Swipe not working in Google Glass Activity

有些话、适合烂在心里 提交于 2020-01-05 08:21:41
问题 I've created a basic activity for Google Glass, but it will not allow me to use the standard down swipe to go back in the stack to the previous activity. I've tried giving the activity focus with this code: @Override protected void onCreate(Bundle bundle) { super.onCreate(bundle); setContentView(R.layout.layout_orienation_detection_activity); mView = getWindow().getDecorView().findViewById(android.R.id.content); mView.setFocusable(true); mView.setFocusableInTouchMode(true); } @Override