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?
Asked
Active
Viewed 1,032 times
4
-
1You can try something like this [link](http://www.cs.dartmouth.edu/~campbell/cs65/lecture22/lecture22.html) – Nandyy Nov 09 '16 at 09:39
1 Answers
2
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.

Ken Y-N
- 14,644
- 21
- 71
- 114
-
Yeah actually I tried that as well, but I think manipulating the tilt values won't be that much reliable. So I am looking for some kind of pattern matching. Is there any way to do that? – Vinay Mundada Jul 04 '16 at 08:33