android: turn off screen when close to face

Posted by mtmurdock on Stack Overflow See other posts from Stack Overflow or by mtmurdock
Published on 2010-06-10T21:35:22Z Indexed on 2010/06/10 22:02 UTC
Read the original article Hit count: 269

Filed under:
|

My app allows the user to access their corporate voice mail. Normally, durring a phone call when the user holds the device up to their ear, the screen shuts off so they wont accidentally push buttons with their face. I would like to make my app do the same thing when the user is listening to their voice mail.

anyone know how to do this?

© Stack Overflow or respective owner

Related posts about android

Related posts about screen