Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Activity Recognition stops receiving updates when phone goes to standby(screen off st

OP drkstr01

3rd September 2014, 05:44 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Sep 2014
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.

My question: Why does my app stop tracking the uses activity after the device goes to standby mode? And how do I make it not stop detecting the users activity?

Let me know if you need to see any of the code or if you need any more details on my app.
18th December 2014, 07:29 PM   |  #2  
Martini3001's Avatar
Senior Member
Flag Darmstadt
Thanks Meter: 74
 
255 posts
Join Date:Joined: Feb 2012
Donate to Me
More
+1,
I read your question on SO. Do you got something new?
18th December 2014, 10:25 PM   |  #3  
mohamedrashad's Avatar
Senior Member
Flag ismailia
Thanks Meter: 463
 
1,002 posts
Join Date:Joined: Nov 2012
More
the lockscreen app becomes the foreground activity so your app is not detected
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes