Mmastodon TechnologyMobile first seen 13 h ago, last 13 h ago, peak #5
Scheduled app blocks in Kotlin: day bitmasks and overnight handling
Original: A one-off app block is simple to model: a package name and a timestamp. When the timestamp passes,... # android # kotlin
A developer walkthrough of modeling one-off and recurring app blocks in an Android app is drawing attention. A single block is stored as a package name plus a timestamp that expires when it passes, while scheduled blocks use day-of-week bitmasks, which complicates overnight windows that span midnight. The post covers the Kotlin, coroutines, and database details of implementing this.
Why now: Developers interested in Android screen-time or app-blocking features are discussing the practical data modeling and edge cases.
Evidence
- A one-off app block is simple to model: a package name and a timestamp. When the timestamp passes,... # android # kotlin # coroutines # database # software # coding # development # engineering # inclusive # community Scheduled app blocks in Kotlin: day bitmasks, overnight… · hackaday@www.urbanmind.net · 2
API: https://socialmediatrends-api.osmike.com/v1/trends/1258006