Menu

Unlock challenges that fail when you look away: attention-gated friction in Jetpack Compose
📰

Unlock challenges that fail when you look away: attention-gated friction in Jetpack Compose

DEV Community: android·ReClaim·18 days ago
#U4YhTvcb
#devtoandroid#devto#dev#level#random
Reading 0:00
15s threshold

We're building ReClaim , a minimalist Android launcher that's on Google Play . One of its features is hiding apps, and hiding turned out to be a design problem more than a code problem. If a hidden app opens with one tap from search, it isn't really hidden. If it can never be opened, people uninstall the launcher.

So hiding has levels. Here they are, straight from the dialog the user picks from:

HideLevelRow ( "Simple" , "Hidden from the launcher." , 1 , onPick ) HideLevelRow ( "Medium" , "Solve a quick challenge to open." , 2 , onPick ) HideLevelRow ( "Maximum" , "Solve a harder challenge to open." , 3 , onPick ) HideLevelRow ( "Extreme" , "Eyes on the screen the whole time." , 4 , onPick )

Enter fullscreen mode

Exit fullscreen mode

This post is about how the challenges behind levels 2 to 4 are built in Jetpack Compose, and mostly about level 4, where the rule is "you fail if your attention leaves the screen." There's no camera and no eye tracking involved.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.