Closed GoogleCodeExporter closed 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
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
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
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
Original comment by ala...@google.com
on 27 Jan 2014 at 11:17
Original comment by ala...@google.com
on 27 Jan 2014 at 11:26
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
Original issue reported on code.google.com by
mayurupe...@gmail.com
on 27 Jan 2014 at 6:27