background preloader

Shake detection

Facebook Twitter

SensorSimulator - openintents - Sensor Simulator for simulating sensor data in real time. - Make Android applications work together. The SensorSimulator drives your Android application in real time. Download it About the SensorSimulator The OpenIntents SensorSimulator lets you simulate sensor data with the mouse in real time.

Moreover, you can simulate your battery level and your gps position too, using a telnet connection. NEW! Now you can record a sequence with states from a real device. Also you can use features like editing, saving, loading and playing the scenario. Connecting the SensorSimulator with the Android emulator Download the latest sensorsimulator-x.x.x.zip from the download tab and unzip (if you didn't already). Note 1: Only these numbers are transfered between the SensorSimulator and the Android phone. Note 2: To change the enabled sensors, you have to disconnect and reconnect from the settings activity.

Recording in SensorSimulator from a real Android device Download the latest sensorsimulator-x.x.x.zip from the download tab and unzip (if you didn't already). Quick Settings tab Sensors Parameters tab Light. How to detect shake motion on Android phone | clingmarks. How to detect shake event with android. Accelerometer - Android: I want to shake it! Motion Sensors. The Android platform provides several sensors that let you monitor the motion of a device. Two of these sensors are always hardware-based (the accelerometer and gyroscope), and three of these sensors can be either hardware-based or software-based (the gravity, linear acceleration, and rotation vector sensors). For example, on some devices the software-based sensors derive their data from the accelerometer and magnetometer, but on other devices they may also use the gyroscope to derive their data.

Most Android-powered devices have an accelerometer, and many now include a gyroscope. The availability of the software-based sensors is more variable because they often rely on one or more hardware sensors to derive their data. Motion sensors are useful for monitoring device movement, such as tilt, shake, rotation, or swing. All of the motion sensors return multi-dimensional arrays of sensor values for each SensorEvent. Table 1. 1 The scalar component is an optional value. Ad = - ∑Fs / mass. Device shaked? accelerometer once more - Android Developers | Google Groupes. I'm not that familiar with how the sensor works, but judging from thevalues you report, i looks like the device is not entire horizontal orvertical.

Your computeRealForce hovers around 0.4 (horizontally) or -1(vertically). I guess you have to find a proper 'baseline' against which you canmeasure any deviation. In the horizontal case that would be around0.4, in the vertical case that would be around -1. However, it could be that your device was not precisely horizontal orprecisely vertical. How would you know the 'baseline'? I don't know...Maybe 0 or -1 is precisely horizontal or vertical and you can't assumethat your device will be ever exactly horizontal or vertical... I guess you have to measure over a period of time and see what thedeviation is. On Jan 31, 4:19 pm, kretes <kretesena... > very similiar approach as seen and similiar.