2

Is there a way to find the last time or the time spent since the user locked/unlocked the screen? Is there any log which stores this information?

I am trying to track user (in)activity and looking for the simplest possible way to do it. I know it can be done by continuous tracking through a service perhaps, but was trying to avoid doing that.

SANDeveloper
  • 560
  • 2
  • 7
  • 22

1 Answers1

3

It seems that this cannot be done.

I ended up creating a new service which track the last screen lock/unlock and save the time myself.

SANDeveloper
  • 560
  • 2
  • 7
  • 22