0

I am using the UsageEvents API to calculate daily foreground time of installed apps on an Android device

https://developer.android.com/reference/android/app/usage/UsageEvents.Event

What I am doing is ordering the events by time for each activity and computing the time in between RESUME and PAUSED events

enter image description here

in some cases I see two consecutive RESUMED events. What does it mean? How is it possible that an app is resumed if it's already in foreground?

alexlipa
  • 1,131
  • 2
  • 12
  • 27

0 Answers0