Skip to content Skip to sidebar Skip to footer

Can Anyone Tell Me How I Get Toast When Mobile Falls Down?

I am making an android project to detect when mobile fall down, can anyone tell me which sensor should I use in my app, I know accelerometer will use for this kind of purpose, but

Solution 1:

There is no "Fall Sensor", your guess in using the accelerometer is right. Record and measure the accelerometer data when it falls and deduct a model from there.

Solution 2:

You have to use accelerometer. But it will detect very small movement.

The only way to do is , get the difference between two readings on change of state.

If its very very high, the mobile has traveled a longer distances say fell down from hand, or change an abnormal position say a shock.

Solution 3:

For this we have to use little bit of Physics, any object falling under the influence of gravity has an acceleration of 9.8 m/s/s, downward (on Earth). SO with this knowledge we can get the downward direction speed 1)based on the axis(Y-axis) using accelerometer check it is downward and 2) check if it is equal to this 9.8 m/s constant and also check the

if the fall speed is approx near 9.8 m/s show the toast

Solution 4:

Hi all i done this by myself a little change was get me rid of this , that is just taking two variable set those values negative and call them as threshold value of acceleration . thanks everyone

Post a Comment for "Can Anyone Tell Me How I Get Toast When Mobile Falls Down?"