Activity Recognition stops receiving updates when phone goes to standby(screen off state)
问题 I am having some trouble with activity recognition. I have implemented it in an app and it works fine when the device's screen is on. I have a log entry in my Activity recognition intent service class and I can see when it gets an update.So, I know it is working fine when the screen is on. But then after the phone is put to standby(the screen is turned off) it stops detecting the uses activity. The onDisconnected() in the DetectionRequester class is not getting called, I checked using a log