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 activity recognition from both of them. Any idea why the intent service stops even though i've tested geofencing api with intent service and it's working forever without stopping? 回答1: Your IntentService might "stop", I would say "fall asleep"