Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GDK picture intent gets stuck on Tap to accept

Today the picture function on my Glass app stopped working. It was fine yesterday, but now it gets stuck on the Tap to Accept Picture. I think it may have something to do with the new (to me at least) way it handles pictures as well as the viewfinder. What I can find on the glass developers site is deprecated and doesn't work. My hope/belief is that the new idea is for the intent to go to the viewfinder and then take the picture. I'd prefer to still use the glass method, but I am aware of the android API camera method. Here's the code

startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), REQUEST_PIC);

and in onActivityResult

switch(requestCode)
        {
        case REQUEST_PIC:
                String picturePath = data.getStringExtra(Intents.EXTRA_PICTURE_FILE_PATH);
                processPictureWhenReady(picturePath);
                break;
        }
like image 451
Lanston Balfour Avatar asked Nov 01 '22 21:11

Lanston Balfour


2 Answers

I have got the same problem since upgraded to XE18.3. Instead of spending time to look for a workaround, I've implemented the preview mode with SurfaceView. You could access the camera directly with Camera.Open(), the sample codes can be found at: (search for "camerasample.zip" in the page)

https://code.google.com/p/google-glass-api/issues/detail?id=351

Hope this helps.

like image 56
Andre.L Avatar answered Nov 08 '22 04:11

Andre.L


This is a problem being experienced after the XE18.3 update. It has been logged in the google-glass-api issue tracker here.

You can try downgrading the firmware as mentioned in the comments, but be sure to note that doing that voids your warranty.

like image 25
user3794207 Avatar answered Nov 08 '22 06:11

user3794207