• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help with new Activity Recognition APIs

The activity recognition APIs that are part of the Google play services have been updated and some of the classes like ActivityRecognitionClient have been deprecated. The examples on the android site still refer to the old APIs. I tried using the new ones but it's not sending any user activity updates.
This is what I'm doing to start the updates
[HIGH]ActivityRecognition.ActivityRecognitionApi.requestActivityUpdates(mGClient, DETECTION_INTERVAL, mActivityRecognitionPendingIntent);[/HIGH]
I have permissions mentioned in the manifest. Can someone please point me in the right direction. I've been trying for more than a day but I haven't been able to figure out what I'm doing wrong :(
 
Back
Top Bottom