# Apple TV And Android TV: One Codebase, And CSS @media For The Living Room

DevFeed: [Apple TV And Android TV: One Codebase, And CSS @media For The Living Room](<https://devfeed.tech/articles/apple-tv-and-android-tv-one-codebase-and-css-media-for-the-living-room-19199.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/apple-tv-and-android-tv/>)

Author: Shai Almog

Published: 2026-06-30T00:00:00Z

Content type: release

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [tvOS](<https://devfeed.tech/topics/tvos.md>), [Android](<https://devfeed.tech/topics/android.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Android APK](<https://devfeed.tech/topics/android-apk.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [apk](<https://devfeed.tech/tags/apk.md>), [apple](<https://devfeed.tech/tags/apple.md>), [css](<https://devfeed.tech/tags/css.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

The article describes Codename One support for Apple TV and Android TV from a shared codebase. It covers runtime TV detection, CSS @media styling, Android TV APK generation, and a separate tvOS target built from the same project.

## Source excerpt

TV becomes a real form factor: CN.isTV(), runtime device-tv/device-watch CSS @media, an Android TV APK via android.tv, and a tvOS Metal target.