-2

Possible Duplicate:
android: turn off screen when close to face

how can i detect that my face is close to the mobile , for example :- when i have answered to incoming call , the screen of the mobile turned-off , and when i move the device away , the screen is turned on again ,,how can we code this

Best Regards

Community
  • 1
  • 1
Mohamed Sayed
  • 59
  • 1
  • 2

1 Answers1

0

This is called proximity sensor.

AlexR
  • 114,158
  • 16
  • 130
  • 208