sensor

Read sensors while screen is black

Hi here there is a interesting problem! I have this service: public class SensorService extends Service implements SensorEventListener { private static final String TAG = "MyService"; private MyServiceBinder myServiceBinder = new MyServiceBinder(); private SensorManager mSensorManager; ........... private PowerManager.WakeLoc...

Issue with SensorEventListner.onAccuracyChanged - Allways returns the same value

Hi, I am trying to determine when to ask the user to calibrate their device. Specifically the sensor TYPE_MAGNETIC_FIELD. The event callback is called repeatedly and always with the same value of accuracy = 3 (high accuracy). I have waved a magnet over the device and really confused the sensor but still I get high? This does not sound r...

Sensor fusioning with Kalman filter

I'm interested, how is the dual input in a sensor fusioning setup in a Kalman filter modeled? Say for instance that you have an accelerometer and a gyro and want to present the "horizon level", like in an airplane, a good demo of something like this here. How do you actually harvest the two sensors positive properties and minimize the ...

Android direction sensor

is it possible to know which direction the phone is pointing while looking at the camera preview, or do you have to have the phone flat like a compass. Thanks ...

Compass and Accelerometer precision

Hi, i made my own application in Android that use compass and accelerometer sensors to display the degrees of rotation and inclination of my device. I initialized all the listener and objects i needed (i followed some tutorials), and now i can catch the degrees as i wished. The problem is that the measures that sensors return aren't accu...

Music in my game disturbs accelerometer values. How to solve this?

Hi. I'm writing a game where the player tilt the phone to control a character. The problem is: the music(when playing loud) and sound effect(like gun shots) disturbs the accelerometer values. This result in weird character movement. Please give me some advice on how to solve this. Thank you in advance! ...