MikeTrendsTrends right now

Mmastodon TechnologyMobile first seen 12 h ago, last 12 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.

AndroidKotlin

Open on mastodon →

Evidence

API: https://socialmediatrends-api.osmike.com/v1/trends/1258006