Saturday, 15 March 2014

android - Battery conservation with camera preview in Google Glass -



android - Battery conservation with camera preview in Google Glass -

i developing google glass app , 1 of major problems seem having device overheat after camera preview displayed period longer 5 minutes.

my question is: are there settings can adjusted such photographic camera preview display uses less powerfulness battery? in hopes using less powerfulness maintain device overheating well. (when tested, app can run ~50 minutes before draining battery 100% 0%)

google glass sucks, period. however, have managed extend preview + live video feed 20 min reducing brightness.

@override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_camera); windowmanager.layoutparams lp = getwindow().getattributes(); lp.screenbrightness = 0f; getwindow().setattributes(lp); //rest of stuff }

you can read more parameters here. additionally, turn of rest of services bluetooth , location.

more on i'm implementing temperature detection , closing video stream allow graceful fallback in application. can follow question, have working code take couple of days clean , create nice example.

android google-glass battery overheating

No comments:

Post a Comment