nicolas2k / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
1 stars 0 forks source link

Add API to know when user is wearing Glass #386

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Implement on head detection using a BroadcastReceiver
2. Wear the device
3. Turn off the deice
4. Get it off your head
5. Reboot the device
6. Wear it before it boots completely

What is the expected output? What do you see instead?
Ideally, Glass must detect that it is on head but instead the event was fired 
when it was turned off so it still thinks it is off head.

What version of the product are you using? On what operating system?
Glass, XE12

Please provide any additional information below.
Well i would think instead of using a BroadcastReceiver there must be some 
other way to detect if the glass is currently on head or not.

Original issue reported on code.google.com by mayurupe...@gmail.com on 27 Jan 2014 at 6:27

GoogleCodeExporter commented 8 years ago
Hello,

Thanks for the report! However, there are no officially supported APIs for 
on-head detection yet.
While what you're using might be working, it might break with future releases 
until we release a stable API.

Could you tell us more about your use-case? That would help us understand what 
such an API could achieve for developers.

Thanks!
Alain

Original comment by ala...@google.com on 27 Jan 2014 at 6:29

GoogleCodeExporter commented 8 years ago
Hi,

Specifically in my application, i am running a piece of code that wakes up the 
device periodically, must not run the piece of code if the device is off head 
to avoid draining the battery. An API for on head detection would certainly 
help me achieve this. A better pointer to the sensor(s) used for on head 
detection shall also be very much appreciated for better flexibility in 
handling the code. System broadcast actions that are currently open to use may 
be disabled in the future, so something to handle both the current state of the 
glass (being on head or off) and handling of the actual events of taking it off 
and putting it back on might help a long way. 

Original comment by mayurupe...@gmail.com on 27 Jan 2014 at 6:53

GoogleCodeExporter commented 8 years ago
Thanks for the clarifications! One last question though: how are you displaying 
information to the user? Are you using a LiveCard or displaying information 
when the user requests it through the "Ok Glass" menu?

Original comment by ala...@google.com on 27 Jan 2014 at 6:57

GoogleCodeExporter commented 8 years ago
Hi,

I am not displaying any information currently. The application is triggered 
once using the "Ok glass" and once triggered does everything else itself. 

Original comment by mayurupe...@gmail.com on 27 Jan 2014 at 7:07

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 27 Jan 2014 at 11:17

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 27 Jan 2014 at 11:26

GoogleCodeExporter commented 8 years ago
This has been fixed with XE18.1:
  https://developers.google.com/glass/release-notes

Original comment by ala...@google.com on 12 Jun 2014 at 2:49