Skip to content Skip to sidebar Skip to footer

Android Activityrecognitionapi Requestactivityupdates Are Too Frequent. How Can I Throttle Them?

I'm trying to change how often I request location updates from the FusedLocationProviderAPI based on the activity level of the user. Android provides an ActivityRecognitionApi whic

Solution 1:

You have probably found a solution by now, but..

I am currently working on a fork of https://github.com/mcharmas/Android-ReactiveLocation trying to add Activity Recognition. Using an RxJava observer, you easily define a filter that only let new activities go to the subscribe() method if x seconds has passed.

The fork can be found here: https://github.com/cyrixmorten/Android-ReactiveLocation

Post a Comment for "Android Activityrecognitionapi Requestactivityupdates Are Too Frequent. How Can I Throttle Them?"