---
title: "Discussion on \"Why UsageStatsManager returned no foreground app on a real Android phone\" | Hashnode"
description: "Discussion on \"Why UsageStatsManager returned no foreground app on a real Android phone\". A usage-stats bucket dated in the future, and the query that fixes it"
url: "https://hashnode.com/posts/why-usagestatsmanager-returned-no-foreground-app-on-a-real-android-phone/6b05ae41eb02a8e8c4bdeff4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why UsageStatsManager returned no foreground app on a real Android phone](https://zhukovskyi.hashnode.dev/why-usagestatsmanager-returned-no-foreground-app-on-a-real-android-phone?utm_source=hashnode&utm_medium=feed)

A usage-stats bucket dated in the future, and the query that fixes it

1d ago · 4 min read · zhukovskyi.hashnode.dev  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#flutter](https://hashnode.com/tag/flutter)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)

## Written by

[Andrii Zhukovskyi](https://hashnode.com/@zhukovskyi)

@zhukovskyi · Barcelona, Spain

  
[View profile](https://hashnode.com/@zhukovskyi)

Platform engineer: Kubernetes, AWS, AI tooling. I write about bugs I hit in production and the open-source tools I build.

Platform engineer working with Kubernetes, AWS and AI tooling. I write about production bugs and the open-source tools I build: jvm-fit, FileForge and Health OS. More at https://zhukovskyi.space

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
