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
2
votes
2 answers

How do I detect a change in transition using ActivityRecognition API?

Upon my research, I realised Google's Activity Recognition API allows you to detect the activity a phone user is undertaking (walking, driving, etc), but I want to detect a change in transition. I want to know if this transition occurs: (walking to…
2
votes
1 answer

Which API is really depreciated ActivityRecognitionApi or ActivityRecognitionClient

According to Google Google APIs for Android the ActivityRecognitionApi interface is deprecated and need to use the ActivityRecognitionClient interface. But other sources saying that the ActivityRecognitionClient is depricated and need to use the…
2
votes
1 answer

ActivityDetectionBroadcastReceiver does not compile after updating to GooglePlayServices 26.0.2

This is my onReceive function: @Override public void onReceive(Context context, Intent intent) { ArrayList updatedActivities = intent.getParcelableArrayListExtra(Constants.ACTIVITY_EXTRA); int type = 0x0; …
2
votes
3 answers

Android activity recognition issue

I am developing android native applications. My requirement is to get the current activity of the device like running,in_vehicle,still and so on. I used ActivityRecognitionAPI and set the pendingintent to receive the activity changes through…
2
votes
1 answer

ActivityRecognition API doesn't send motions after a while

I have an broadcast receiver for DetectedActivities using the ActivityRecognition. I noticed that it did connect, but I was getting no data. This is on a Samsung Note 2. On other phones I tried it always works. This is the code to connect to google…
2
votes
0 answers

Delay in the first fix of Activity Recognition API

In my Android app I am using ActivityRecognition API, which works perfectly fine. Unfortunately it takes some time for AR to get the first fix, I guess it waits some Significant Motion in order to get first fix or long time in order to decide if…
mibrl12
  • 454
  • 5
  • 21
2
votes
2 answers

Activity Recognition API does not work continuously

I'm testing Activity Recognition API in 2 apps : Google sample code and implementation of this code in my app. The problem is both apps keeps getting activity recognition fine but after a few hours the intent service stops and i'm not getting any…
WoW
  • 151
  • 2
  • 10
2
votes
1 answer

Feature Exraction in Matlab then importing into Weka

I have captured data from an accelerometer x,y,z. I am doing activity recognition and have separated the data into sit,run,jump. I am now windowing the data and extracting features such as the mean, variance etc and then saving it to a features.txt…
yolad
  • 120
  • 10
2
votes
1 answer

Can ActivityRecognition API work without a data connection?

I am looking to use the Google Play Service ActivityRecognition API as part of an Android app which will be offline for most of its usage; users will generally be out and about and a data connection is not guaranteed. Looking at the docs, the…
Mendhak
  • 8,194
  • 5
  • 47
  • 64
2
votes
1 answer

Getting GoogleApiClient to work with Activity Recognition

I am currently working with ActivityRecognitionClient , but unfortunately that Google has announced that the class had been deprecated and to use GoogleApiClient instead. Not sure if I am doing it wrong or not, I am getting confused with the new API…
2
votes
2 answers

How to Use com.google.android.gms.common.api.GoogleApiClient, not the ActivityRecognitionClient, to request ActivityUpdates in android?

The motto here is calling the Service 'ActivityTrackerService' when I say requestActivityUpdates() using the GoogleApiClient's ActivityRecognition.ActivityRecognitionApi as shown in the code below when googleApiClient.connect() is called. After the…
2
votes
1 answer

Using Activity Recognition

I want to implement an app which needs to implement activity recognition i studied and followed the steps which are in developer.android.com whenever i am running the code it continuously showing "Launching Activity Recognition(it is my app name)"…
Niranjan
  • 1,879
  • 2
  • 22
  • 28
2
votes
1 answer

Activity Recognition and Location Client Android

I am having difficulty making use of both Activity Recognition an LocationClient to fetch current location. I want to fetch users current location when the Activity recognition returns "IN_VEHICLE" But when i try to connect my location client it…
2
votes
1 answer

How to raise the accuracy? - Activity Recognition using continuous Hidden Markov Models (Jahmm)

I am a novice at HMMs but I have tried to build a code using Jahmm for the UCI Human Activity Recognition data set. The data set has 561 features and 7352 rows, and also includes the xyz inertial values of both the accelerometer and gyroscope, and…
2
votes
1 answer

Can't change the request interval of the Google Play Service's Activity Recognition

As described in the title, my problem is can't control the activity recognition request properly. My code like this: arclient.requestActivityUpdates(ACTIVITY_DETECT_INTERVAL, pIntent); the ACTIVITY_DETECT_INTERVAL =2*60*1000 (2 mins), but the log…
Jerome
  • 1,749
  • 1
  • 14
  • 40