AutoPlakáty: keeping ads playing with no signal

Tablets in moving cars lose signal all the time. The screen still can't go blank.

A car on an empty road at night, its signal fading above it while a screen in its window stays lit.

AutoPlakáty shows ads on Android tablets in cars around Prague. Advertisers send in their material, it goes into playlists, and the tablets show it to passengers all day.

A car drives through bad signal all the time, and the one thing the screen must not do is go blank. So the player is built on one rule: the network is only for getting updates. Playing never needs it.

A full copy on every tablet

The player is a native Kotlin app running in kiosk mode. Every tablet keeps a full local copy of its active playlist, and playback only reads from that copy. With no signal it just keeps going. If the app crashes or the tablet reboots, it starts itself again.

An update goes like this:

  1. A playlist changes and the affected tablets get a push.
  2. The tablet fetches the new manifest.
  3. It downloads any new media to local storage while the old content keeps playing.
  4. It switches over only when every file is there.

Push is not enough

Firebase push gets an update out fast, but it isn't guaranteed, least of all to a tablet in a low-power state. So the tablets also poll in the background. Polling is the baseline and push is the fast path. A lost push means the playlist is out of date until the next poll, and nothing worse.

Test on the real tablets

Locking an Android device to one app needs the device management APIs, and getting kiosk mode reliable across the different tablets in the fleet took code that depends on the Android version. An emulator behaves differently from a real tablet, so I tested on the actual devices from the start.

More posts

All posts →
  1. 02 Nov 2026

    Ask for a role, not a model: the small AI gateway behind my sitesCode asks for “summarise” or “translate”, never for a model name. One table decides the rest.

    AI · 14 min
  2. 16 May 2026

    Why AI-generated websites all look the same, and what I built to stop itA hundred prompts, the same page a hundred times. The seeds and checks I used against it.

    AI · 3 min
  3. 22 Apr 2026

    Meridia: getting places out of news textNews says "the region" and "local authorities". A map needs a place.

    Projects · 1 min