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
0
votes
1 answer

Activity recognition Google API messing up Rotation Vector Sensor Reading

I am having a problem when trying to use rotation vector sensor with new Location and Activity recognition Google APIs. I am using the rotation vector to determine orientation of the device. Before using APIs: The rotation vector works fine before…
0
votes
1 answer

User Motion Detection App keeps on crashing

I have been working on this app. It just won't execute. Crashes everytime.Please help. AndroidManifest.xml
0
votes
1 answer

Activity recognition not working on several devices

the sample code from http://developer.android.com/training/location/activity-recognition.html doesn't work in Nexus S and Motorola droid devices (and probably on other devices also), confirm working on Nexus 7 2013 and Samsung Galaxy Young, this…
0
votes
1 answer

Android Activity Recognition Sample Bug

So I downloaded the Sample App for 'Recognizing the User's Current Activity' on the android website http://developer.android.com/training/location/activity-recognition.html The problem I'm having is that when I press the 'Start Updates' button, then…
J P
  • 83
  • 1
  • 2
  • 6
0
votes
1 answer

Android start ActivityRecognition Manually

my Android App needs to detect the current Activity (running, walking, ...). I followed the instructions on the Android Dev Page: http://developer.android.com/reference/com/google/android/gms/location/ActivityRecognitionClient.html // Connect to the…
0
votes
1 answer

google activity recognition on kitkat 4.4 not working

I have created an application that recognizes activity using google play services API. It works fine in devices with android version 2.3 to 4.3 but it doesn't work on 4.4 (kitkat)! Yesterday I've received the google play services sdk update…
FerFig
  • 113
  • 9
0
votes
2 answers

Google Play Service Activity recognition start and stops itself constantly

I need to call the Google activity recognition service through a service (not activity) and run it in the background, of course when the user starts the app, which has an activity (But the service does not called directly from activity). Therefore I…
0
votes
1 answer

Android Activity Recognition - Reconnecting following Disconnection

With Google Play Services' Activity Recognition, they recommend that if the service disconnects (which it might) then we should remove the client: http://developer.android.com/training/location/activity-recognition.html In some cases, Location…
warbi
  • 2,725
  • 2
  • 20
  • 26
0
votes
0 answers

Android activity recognition wont update when device is in standby

I'm using ActivityRecognitionClient to get user's activities. the problem is, as soon as the device is in standby mode, i stop getting updates, once i unlock the phone, i get updates. i want to keep getting updates also when the device is in standby…
-1
votes
1 answer

Explicit intents don't works on Android 8.1

The code below works without any problem on pre-Oreo versions. Although I user startForeground method and making explicit intent to get Activity values, onHandleIntent method is never called. I cannot find any issue or solution about this issue. Is…
efkan
  • 12,991
  • 6
  • 73
  • 106
-1
votes
1 answer

Activity Recognition API get state of user in background

So, I am using Activity Recognition API and I am measuring Still, walking, on foot - you get the idea, for my app. Now the issue I am having is when I quit the app it doesn't do it in background, I want to count the number of hours a person was…
Naman Mittal
  • 5
  • 1
  • 3
-2
votes
1 answer

How to determine that google play service to detect user activity work for sure if some sensor is available?

In the Google play service request user activity document they given like, it will work only if the device has Significant motion senor. But there are devices which does not have that senor also detects the user activity properly. And also there…
-3
votes
1 answer

Intent Service how to run continuously in Background?

So I am using Activity Recognition API which I have created a service for called ActivityRecognitionIntentService. I really want this to work in background all the time. The Problem is the app shows in cached running services but shuts down and…
1 2 3
13
14