I am wondering if anyone can help me. I am new to B4A and I want to create an application to trap when a phone is face down or when it is face up.
I have already looked at the Orientation and accelerometer tutorial at
http://www.b4x.com/android/forum/threads/orientation-and-accelerometer.6647/
The accelerometer and gyroscope figures go mad when i run that example. The
accelerometer and gyro numbers never stop changing even though my phone is face up on the table and not moving.
I have a Galaxy S4 to test on and this example say that Orientation is not supported, but I know other apps ( Tasker ) where it works perfectly well.
I have searched on stackoverflow and got this response:
http://stackoverflow.com/questions/...t-to-determine-if-device-is-facing-up-or-down
but I don't know what SensorManager.getRotationMatrix is.
Any help would be great.
Thanks
I have already looked at the Orientation and accelerometer tutorial at
http://www.b4x.com/android/forum/threads/orientation-and-accelerometer.6647/
The accelerometer and gyroscope figures go mad when i run that example. The
accelerometer and gyro numbers never stop changing even though my phone is face up on the table and not moving.
I have a Galaxy S4 to test on and this example say that Orientation is not supported, but I know other apps ( Tasker ) where it works perfectly well.
I have searched on stackoverflow and got this response:
http://stackoverflow.com/questions/...t-to-determine-if-device-is-facing-up-or-down
but I don't know what SensorManager.getRotationMatrix is.
Any help would be great.
Thanks