Questions tagged [activity-recognition]

Activity recognition tries to detect the user's current physical activity, such as walking, driving, or standing still.

Location Services sends out activity information containing one or more possible activities and the confidence level for each one.

Mark a question with this tag if the problem you have involves the use of Location Services and its receiving its PendingIntent or the implementation of FragmentActivity

From the Android.com site

208 questions
4
votes
1 answer

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…
Vinay Mundada
  • 317
  • 3
  • 13
4
votes
0 answers

Activity Recognition does not work after phone goes asleep

Disclaimer: this is not duplicate of Activity Recognition stops receiving updates when phone goes to standby(screen off state) because I'm already using that approach and it does not help. Problem: It seems that Activity Recognition service stops…
4
votes
0 answers

Samsung devices have a strange version of Google Play Services and it doesn't work correctly

I am using Activity Recognition API available in Google Play Services. I've tried using Google Play Services 5+ and Google Play Services 6+ (using the new API with GoogleApiClient) on Android 4+ and Android 5+. Everything works great on different…
4
votes
2 answers

Google Play Services: how to check if there is currently "active" pending intent callback registered to location updates/activity recognition?

my application perform periodic location updates and Activity recognition detection in background. I'm doing that using the Google Play Services API's: for example - to register to location updates, I provide pending intent to receive…
4
votes
0 answers

Android ActivityRecognition services - run in background?

I'm developing an app that will monitor a user's activity throughout the day, and when a particular activity is detected (i.e., driving) a notification will be triggered. The Google Play Services now supports ActivityRecognition, which really makes…
4
votes
1 answer

What does probabilities estimated at the boundary mean? Hidden Markov Models in R using depmixS4 package

I am new to Hidden Markov Models and I am currently trying to use continuous HMM to predict 6 activities on the UCI Human Activity Recognition data set (composed of accelerometer and gyroscope values) in R. I have both train data and test data, and…
4
votes
2 answers

The interval of results from Google's activity recognition isn't regular

I was working on google's activity recognition and finally I got results from this service. However, The function requestActivityUpdates(long detectionIntervalMillis, PendingIntent callbackIntent) doesn't seem to work correctly. The detection…
DeVVil
  • 41
  • 3
3
votes
1 answer

Activity Recognition in Background using Flutter

I want to implement activity recognition in background that means if user close the application even then it'll listening the activity recognition states whether it is in IN VEHICLE, STILL or in which state. I already tried…
3
votes
0 answers

Google Activity Recognition in background

I'm working on the app which makes actions based on user activity. It uses Google Activity Recognition (AR) for that purpose. But AR updates stop when app goes to background probably. It happens not immediately and not always. There are no updates…
3
votes
3 answers

Android ACTIVITY RECOGNITION permission missing

I am targeting SDK 29, and activity transition API works perfectly on devices running 29 (ie Android 10). According to the docs, if you are targeting SDK 29, but running on a lower SDK, the permission should be granted automatically. I have tried…
Geordie Wicks
  • 1,065
  • 1
  • 11
  • 27
3
votes
2 answers

Samsung 8+ does not receive any Activity Recognition events

I'm running the Google Codelab Android Activity Recognition API example on my Samsung 8+ https://codelabs.developers.google.com/codelabs/activity-recognition-transition/ And although the example starts fine on my phone, I do not get any events from…
3
votes
2 answers

Activity recognition API not detecting location changes - Android OREO

Issue : Activity recognition API has an intent service which will get the motion activities and will get as part of intent (onHandleIntent). When I changed my app to target android Oreo, the functionality behaves as below While app is in…
Deniz
  • 12,332
  • 10
  • 44
  • 62
3
votes
0 answers

Detect whether user is in car/bus/train using Google Activity Recognition (React Native)

I am making a React Native app which uses Google Activity Recognition. Currently It only detects activity as IN_VEHICLE when user is in car, train or bus etc. I want to differentiate between it, i.e., I want to know whether user is in car, train or…
Anuj Gupta
  • 85
  • 1
  • 7
3
votes
2 answers

Activity Recognition in background

I'm making an app that tracks user activity in the background using ActivityRecognition API, and if the user remains in the same place for specified period of time(e.g. 1 hour), then system pushes notification telling user to take a walk. I have…
ar_shabazov
  • 398
  • 1
  • 4
  • 13
3
votes
0 answers

Activity Recognition Api wrongly detecting inVehicle

Sometimes when a user is sitting, or the phone is still on a table. the if statement which checks if inVehicle & 100% is triggered and the service in my app is started. I cannot figure out why ? Activity Recognition in MainActivity public String…
1 2
3
13 14