This is my code to post location to server with two filters
1) if my device is not still and
2) if it has accuracy less than 40
With delay parameter in detectedActivityObservable as 0 and my LocationRequestInterval is also 5 secs.I expect logs in zip method frequently (and not in the onNext or onError as my device is still) but I only see log with test zip once. If I have understood it wrong please correct me or please let me know where I have made mistake in my code below.
This is my code to post location to server with two filters 1) if my device is not still and 2) if it has accuracy less than 40
With delay parameter in
detectedActivity
Observable
as 0 and myLocationRequest
Interval
is also 5 secs.I expect logs inzip
method frequently (and not in theonNext
oronError
as my device is still) but I only see log with test zip once. If I have understood it wrong please correct me or please let me know where I have made mistake in my code below.