Android Question Orientation and accelerometer

luke2012

Well-Known Member
Licensed User
Longtime User
Hi all,
Starting from @Erel Tutorial (https://goo.gl/h9XuDD) is it possible to:

1) Recording the data (h24 log) about Orientation and accelerometer sensors?
2) Recognize (intercept) if the phone is dropped ?
3) Implement this also within iOS App ?

Thanks in advance for your reply.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
1) of course, using the correct PhoneWakeState and a SQLite database
2) of course, calculating the G and checking if it is between 0 (free fall) and a higher value (limit you choose) : G = Sqrt(x*x + y*y + z*z)
3) nope as far I know
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
G = Sqrt(x*x + y*y + z*z)
I do not think the formula is correct or it does not return the value of g we all know (9.81 cm/sec^2).
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top