Prevent Activity from closing when device is asleep

XverhelstX

Well-Known Member
Licensed User
Longtime User
Hello,

I have another question,

I have a service that calls(starts) an activity when a timer has ticked.
This works great when my phone isn't asleep, the activity shows and I can work with this activity.
But now, I want that if my phone is asleep, (dimmed), the activity shows too when I unlock my screen.

I tried
phone wakestates
and UserActivity(1000,false)
on Sub Activity_Resume

Here is the log file and see what happens:


Sincerely,
Tomas
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…