I want to predict a standing to sitting transition and vice versa of a user in Android. But I guess, currently Google's DetectedActivity Api gives everything but sitting-standing transition. What are the other ways of doing this? Also, I have tried gathering the accelerometer values, but don't know how to get a pattern from the values and then later predict transitions using that pattern. So how should I proceed?
According to the documentation:
public static final int TILTING
The device angle relative to gravity changed significantly. This often occurs when a device is picked up from a desk or a user who is sitting stands up.
I have highlighted the key phrase. This would appear to be the answer you seek.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With