google-glass

How can we enable debugging mode on google glass for testing an android app on google glass?

痴心易碎 提交于 2021-02-07 14:37:39
问题 I am develop an application for google glasses but I dont know How we enable debug mode in google glass and how we change setting on google glasses ? 回答1: To connect ADB to Google Glass, you have to turn on debug mode on the device. Turn the Glass on with a one second press of the power button if it is off. Tap the touchpad on the side to get to the time and voice prompt screen. Now swipe your finger on the touchpad toward the back of your head until you see the settings card. Tap the

How can we enable debugging mode on google glass for testing an android app on google glass?

我怕爱的太早我们不能终老 提交于 2021-02-07 14:35:00
问题 I am develop an application for google glasses but I dont know How we enable debug mode in google glass and how we change setting on google glasses ? 回答1: To connect ADB to Google Glass, you have to turn on debug mode on the device. Turn the Glass on with a one second press of the power button if it is off. Tap the touchpad on the side to get to the time and voice prompt screen. Now swipe your finger on the touchpad toward the back of your head until you see the settings card. Tap the

MediaRecorder start called in invalid state: 4

。_饼干妹妹 提交于 2021-02-05 09:38:49
问题 I've just started getting into android/Glass development and I was trying to add basic video recording functionality. Currently Glass limits you to 10 seconds unless you tap/press button again and I wanted to bypass this and just have an open ended video recorder. I followed both the Camera API walk-through: And referenced another project: So far my code looks like this: private void startRecording() { try{ camera = Camera.open(); mediaRecorder = new MediaRecorder(); surfaceView = new

Android SpeechRecognizer when do I get ERROR_CLIENT when starting the voice recognizer?

╄→гoц情女王★ 提交于 2021-01-27 12:00:53
问题 I am not sure about some documentation related stuff. To sum up what I did and what I want to to: I managed to introduce voice recognition feature into an Android application that is running on Android 4.2 on a tablet, and it works ok. Now I want to port my application on Google Glass but unfortunately I get the following error when I try to start the speech recognizer: error 5 -> ERROR_CLIENT (Other client side errors). The message guides me to find other errors that not related to

ZXing only recognizes QR-Code

落花浮王杯 提交于 2021-01-06 14:21:52
问题 I am trying to develop a barcode scanner for google glass (don't judge) using the ZXing library. Scanning QR-Codes works perfectly fine, but I can't scan any 1D-barcodes. This is my code: Intent intent = new Intent(this, CaptureActivity.class); //intent.putExtra("SCAN_MODE", "PRODUCT_MODE"); //doesn't work with or without this line startActivityForResult(intent, SCAN_REQUEST); Here is an example (EAN-8): Scanning this with a scanner from the PlayStore works on my phone, but not using my app

ZXing only recognizes QR-Code

匆匆过客 提交于 2021-01-06 14:18:26
问题 I am trying to develop a barcode scanner for google glass (don't judge) using the ZXing library. Scanning QR-Codes works perfectly fine, but I can't scan any 1D-barcodes. This is my code: Intent intent = new Intent(this, CaptureActivity.class); //intent.putExtra("SCAN_MODE", "PRODUCT_MODE"); //doesn't work with or without this line startActivityForResult(intent, SCAN_REQUEST); Here is an example (EAN-8): Scanning this with a scanner from the PlayStore works on my phone, but not using my app

How to enable the debug mode on Google Glass Enterprise Edition 2?

风格不统一 提交于 2020-12-15 06:08:16
问题 It has already been asked in this questions, but this seems to be the Glass Explorer Edition . When I am tapping the device info tab in the Enterprise Edition 2 , the default Android settings open up. They are almost unusable using the touchpad, so I am using scrcpy to control it. Clicking System -> About phone -> Build number multiple times in scrcpy does not work. Tapping it via the touchpad is impossible due to that it's the bottommost entry and the touchpad is not sensitive enough. How

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