google-glass

onPictureTaken never called

眉间皱痕 提交于 2019-12-02 17:33:35
问题 The code works mostly fine. The only problem is that the onPictureTaken function never called. I need to use this function to store the image to SD Card. MainActivity public class MainActivity extends Activity { //private static Camera mCamera; //private CameraPreview mPreview; private static String TAG = "CamraOne"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.camera_layout); Log.d(TAG, "setContentView end"); Intent

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

Google Glass Immersion Custom Layout without CardBuilder.Layout.EMBED_INSIDE

浪子不回头ぞ 提交于 2019-12-02 13:44:42
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. You don't need to use the CardBuilder if you prefer to use your own custom layout: make sure to follow our design guidelines to make sure you

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

Detect overheating in Google Glass programmaticaly

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 12:17:38
问题 As many of other I am facing the google glass overheating issue. My question is how to detect it in the application? I was looking through the log but nothing that indicates it expect a message on the screen. 回答1: Google Glass have (at least) two temperature probes. One for the battery , and the other for the CPU board . You can read them as a regular file. Battery /sys/devices/platform/omap_i2c.1/i2c-1/1-0055/power_supply/bq27520-0/temp CPU Board /sys/devices/platform/notle_pcb_sensor.0

Need an interruptable way to listen for UDP packets in a worker thread

女生的网名这么多〃 提交于 2019-12-02 10:34:53
I'm developing a Google Glass app which needs to listen for UDP packets in a worker thread (integrating with an existing system which sends UDP packets). I previously posted a question (see here ) and received an answer which provided some guidance on how to do this. Using the approach in the other discussion I'll have a worker thread which is blocked on DatagramSocket.receive(). Further reading suggests to me that I'll need to be able to start/stop this on demand. So this brings me to the question I'm posting here. How can I do the above in such a way as to be able to interrupt (gracefully)

onPictureTaken never called

瘦欲@ 提交于 2019-12-02 10:24:18
The code works mostly fine. The only problem is that the onPictureTaken function never called. I need to use this function to store the image to SD Card. MainActivity public class MainActivity extends Activity { //private static Camera mCamera; //private CameraPreview mPreview; private static String TAG = "CamraOne"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.camera_layout); Log.d(TAG, "setContentView end"); Intent intent = new Intent(this, CameraServiceOne.class); Log.d(TAG,"start intent"); startService(intent); Log

Why is Glass missing Google Play Services?

淺唱寂寞╮ 提交于 2019-12-02 06:23:08
问题 What is the reasoning behind not including google plays services on google glass ? Will they be added in the future ? 回答1: It would appear that Google Play Services on Glass will be added in the future. There is an issue that has been "accepted", though with medium priority (see issue 176 here from the official Google Glass issue site. 来源: https://stackoverflow.com/questions/22405979/why-is-glass-missing-google-play-services

Detect overheating in Google Glass programmaticaly

折月煮酒 提交于 2019-12-02 03:45:50
As many of other I am facing the google glass overheating issue. My question is how to detect it in the application? I was looking through the log but nothing that indicates it expect a message on the screen. Google Glass have (at least) two temperature probes. One for the battery , and the other for the CPU board . You can read them as a regular file. Battery /sys/devices/platform/omap_i2c.1/i2c-1/1-0055/power_supply/bq27520-0/temp CPU Board /sys/devices/platform/notle_pcb_sensor.0/temperature But keep in mind that these files may change location as new versions of Google Glass are shipped.