Skip to main content
Participant
September 9, 2013
Question

How can access the telephone sensors?

  • September 9, 2013
  • 3 replies
  • 724 views

How can access the telephone sensors?

The acelerometer?

The proximity sensor?

This topic has been closed for replies.

3 replies

spnmxbAuthor
Participant
September 9, 2013

Thanks.

Accelerometer OK, work fine.

When I write about "proximity sensor" is for detect "my hand is over the screen".

The geolocation class is not the solution for that.

¿Any other ideas?

kglad
Community Expert
Community Expert
September 9, 2013

proximity sensor is not natively supported.  you can use an ane, though:  https://github.com/richardolsson/proximity-sensor-ane

Inspiring
September 9, 2013
kglad
Community Expert
Community Expert
September 9, 2013

How can access the telephone sensors?

what's a telephone sensor?

The acelerometer?

use the accelerometer class

The proximity sensor?

you can use the geolocation class