Top "Android-sensors" questions

Android-sensors tag unites questions that are connected with different hardware sensors that are embedded into Android devices (barometer, accelerometer, magnetometer, microphone, camera and so on)

Accelerometer vs Gravity sensor

Does gravity sensor return right values if device is in motion? I thought that gravity sensor use accelerometer to recognize …

android accelerometer android-sensors gravity
How to enable proximity sensor in android

I have configured proximeter successfully in my code. Now I want to turn off & on screen programmatically. Code of …

android android-sensors power-management proximity
onAccuracyChanged, why?

this is one of the auto-generated functions I get when implementing SensorEventListener i've searched and didn't find anymore than this …

android android-sensors proximitysensor
How do I get the angle/degree of the phone with sensor/s?

I am trying to get the phone angles by using TYPE_ACCELEROMETER sensor. My goal is to get the angle …

android android-sensors android-orientation
Compass direction is different depending on phone orientation

My augmented reality app needs the compass bearing of the camera view, and there's plenty of examples of getting the …

android orientation augmented-reality compass-geolocation android-sensors
Android Shake(Sensor) Service For shake Detection in Application Background

I have develop an Application that have shaking functionality for some function to work so i have use shaking class …

android android-sensors shake
Android Device Orientation is Landscape but Sensors Behaves Like the Orientation is Portrait

I have a problem with orientation in android. The device orientation is landscape which i have set in AndroidManifest.xml …

android orientation android-sensors device-orientation
How can I get the magnetic field vector, independent of the device rotation?

What I want to archieve is a sort of "magnetic fingerprint" of a location. I use the MAGNETIC_FIELD sensor …

android android-sensors