-1

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 inactive or still during a day, How can I achieve this. I am already using a broadcast reciever with Activity Recognition API.

Any help would be great.

Thanks in Advance :D

Naman Mittal
  • 5
  • 1
  • 3

1 Answers1

0

Try to use a background service activity -> background service ->start activity detection