waleedAhmad1 / google-glass-api

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

Need the ability to turn off screen programmatically #444

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Current API does offer this ability - via PowerManager.goToSleep. However, to 
use that API the app needs to have android.permission.DEVICE_POWER which is 
allowed only for system apps. 

Original issue reported on code.google.com by eug...@wearableintelligence.com on 25 Mar 2014 at 1:19

GoogleCodeExporter commented 9 years ago
I would also like to add that, unlike with Android phones, it is far more 
important to be able to do this on Glass as, besides battery life, keeping the 
screen on heats up the device.

Original comment by eug...@wearableintelligence.com on 25 Mar 2014 at 2:33

GoogleCodeExporter commented 9 years ago
To be clear, I tried the approach of releasing the wake lock, while also 
clearing FLAG_KEEP_SCREEN_ON - nothing worked.

Original comment by eug...@wearableintelligence.com on 25 Mar 2014 at 2:47

GoogleCodeExporter commented 9 years ago
Coming from a developer point of view I understand the request but... Coming a 
user point of view I think this wouldn't be a good idea, not at least without 
some considerations first.

Right now, Glass is perceived as being a privacy intrusive device by some 
people. While I try and educate people that ask me about the device that I 
can't record / take a picture of them without the screen being in use, thus 
making a light near my eye and touching the camera button / saying "Ok Glass, 
take a photo".

Same thing goes for microphone.

Maybe if this would be implemented as a linked feature then it would work.
By linked feature I mean:
- if you turn off the screen camera and microphone lose their functions as well
- if you turn on the screen you can access camera and microphone again.

Thank you.

Original comment by florinpa...@gmail.com on 18 Jul 2014 at 10:34