1

I am developing a Google Glass app and one of the major problems I seem to be having is that the device will overheat after the camera preview is displayed for a period longer than about 5 minutes.

My question is: Are there settings that can be adjusted such that the camera preview display uses less power from the battery? This is in hopes that using less power will keep the device from overheating as well. (When tested, the app can run ~50 minutes before draining the battery from 100% to 0%)

King_Kumar
  • 45
  • 8
  • Unless you reduce the brightness somehow, or reduce the frequency in which you grab images from the camera, probably not. That's pretty normal (taking a video drains the battery in ~1 hour). – hichris123 Jun 20 '14 at 22:14

1 Answers1

0

Google Glass sucks, period. However, I have managed to extend preview + live video feed to 20 min by 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 your stuff
 }

You can read more about parameters here. Additionally, I turn of rest of the services like Bluetooth and location.

More over I'm implementing temperature detection and closing video stream to allow graceful fallback in the application. You can follow the question, I have working code but will take couple of days to clean up and make a nice example.

Community
  • 1
  • 1
Califlower
  • 467
  • 4
  • 15