Android Question significant_motion "triggerEvent" sensor

wolvo66

Member
Licensed User
Longtime User
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!
 
Top