Detect user activity (running, cycling, driving) using Android

accelerometer, android, android-sensors, gyroscope

Solution

You can use the GooglePlayServices for this.

It Provides special apis for ActivityRecognition, which returns the User activity with confidence level for each.

https://developer.android.com/guide/topics/location/transitions

http://developer.android.com/training/location/activity-recognition.html

Problem

Using my Android device how can I detect if the user is walking, cycling or driving? I have checked the Google Fit app. It differentiates between running, cycling and driving. I am puzzled about what algorithms I should use to differentiate between these activities. I know I would have to use the accelerometer sensor. But still I can't differentiate these activities.

Original source