Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting whether user is standing or sitting

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?

like image 929
Vinay Mundada Avatar asked Nov 15 '25 11:11

Vinay Mundada


1 Answers

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.

like image 185
Ken Y-N Avatar answered Nov 17 '25 09:11

Ken Y-N