luke2012 Well-Known Member Licensed User Longtime User Oct 24, 2017 #1 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.
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 Oct 24, 2017 #2 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
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
AlpVir Well-Known Member Licensed User Longtime User Oct 24, 2017 #3 G = Sqrt(x*x + y*y + z*z) Click to expand... 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
G = Sqrt(x*x + y*y + z*z) Click to expand... 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).
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #4 Check this tutorial: https://www.b4x.com/android/forum/threads/9857/#content You need to have a foreground service. You can monitor the orientation and accelerometer with B4i, however it is only possible to monitor the sensors when your app is in the foreground. Last edited: Oct 25, 2017 Upvote 0
Check this tutorial: https://www.b4x.com/android/forum/threads/9857/#content You need to have a foreground service. You can monitor the orientation and accelerometer with B4i, however it is only possible to monitor the sensors when your app is in the foreground.
luke2012 Well-Known Member Licensed User Longtime User Oct 25, 2017 #5 Erel said: Check this tutorial: https://www.b4x.com/android/forum/threads/9857/#content You need to have a foreground server. You can monitor the orientation and accelerometer with B4i, however it is only possible to monitor the sensors when your app is in the foreground. Click to expand... Thanks @Erel for your useful reply. What you mean exactly with "foreground server" ? Upvote 0
Erel said: Check this tutorial: https://www.b4x.com/android/forum/threads/9857/#content You need to have a foreground server. You can monitor the orientation and accelerometer with B4i, however it is only possible to monitor the sensors when your app is in the foreground. Click to expand... Thanks @Erel for your useful reply. What you mean exactly with "foreground server" ?
klaus Expert Licensed User Longtime User Oct 25, 2017 #6 AlpVir said: the value of g we all know (9.81 cm/sec^2) Click to expand... I don't know this one: g = 9.81 cm/sec^2 ! I only know this one: g = 9.81 m/sec^2 Upvote 0
AlpVir said: the value of g we all know (9.81 cm/sec^2) Click to expand... I don't know this one: g = 9.81 cm/sec^2 ! I only know this one: g = 9.81 m/sec^2
AlpVir Well-Known Member Licensed User Longtime User Oct 25, 2017 #7 I only know this one: g = 9.81 m/sec^2 Click to expand... Swiss accuracy (in italian "Precisione svizzera") !!! Upvote 0
I only know this one: g = 9.81 m/sec^2 Click to expand... Swiss accuracy (in italian "Precisione svizzera") !!!
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2017 #8 luke2012 said: Thanks @Erel for your useful reply. What you mean exactly with "foreground server" ? Click to expand... I meant foreground service (Service.StartForeground). Upvote 0
luke2012 said: Thanks @Erel for your useful reply. What you mean exactly with "foreground server" ? Click to expand... I meant foreground service (Service.StartForeground).