W wolvo66 Member Licensed User Longtime User Nov 17, 2013 #1 I'm trying to use significant_motion sensor, I have it working in native Android so my HW/FW support is there (Galaxy S4 with Android 4.3 api 18). I have added it as a normal sensor in B4A AddSensor(17, "SIGNIFICANT_MOTION", False) It returns a maxValue = 1 (so somehow is seen?), but startListening = false It is a "triggerEvent" sensor http://developer.android.com/reference/android/hardware/TriggerEvent.html so I guess this TriggerEvent type is not currently supported by B4A sesnor framework. Any suggestions best approach to access this? I guess it's not critical that it triggers an actual event as the purpose of this is to wake the CPU and hence resume service module execution, I could catch it in Service_Start ? or doesn't it work that way. - Thanks!
I'm trying to use significant_motion sensor, I have it working in native Android so my HW/FW support is there (Galaxy S4 with Android 4.3 api 18). I have added it as a normal sensor in B4A AddSensor(17, "SIGNIFICANT_MOTION", False) It returns a maxValue = 1 (so somehow is seen?), but startListening = false It is a "triggerEvent" sensor http://developer.android.com/reference/android/hardware/TriggerEvent.html so I guess this TriggerEvent type is not currently supported by B4A sesnor framework. Any suggestions best approach to access this? I guess it's not critical that it triggers an actual event as the purpose of this is to wake the CPU and hence resume service module execution, I could catch it in Service_Start ? or doesn't it work that way. - Thanks!
Erel B4X founder Staff member Licensed User Longtime User Nov 17, 2013 #2 You will need to create a small library that calls http://developer.android.com/refere...riggerEventListener, android.hardware.Sensor) Upvote 0
You will need to create a small library that calls http://developer.android.com/refere...riggerEventListener, android.hardware.Sensor)