Overview of Android TV Development

Android TV, now dominating China’s rapidly expanding smart‑TV market, offers a large shared screen experience and extensive I/O options, while development mirrors Android phone projects using Android Studio and Gradle, with debugging on boxes or tablets, and requires careful handling of limited CPU/memory, background‑process behavior, and wired‑network connectivity.

Tencent Music Tech Team
Tencent Music Tech Team
Tencent Music Tech Team
Overview of Android TV Development

0.概述

智能电视近两年可谓发展迅猛,据艾瑞咨询数据显示,2015年国内智能电视终端销售量将达到3556.8万台,预计在2016年用户量突破一亿。不同于手机端群雄割据的局面,Google开发的Android TV系统,凭借其广泛的兼容性,几乎占据了智能电视的全部市场。

简单来看,TV端具有Phone和Pad都不具备的大屏,是移动端的一个大屏扩展。但是,窃以为还不止于此,TV侧的内容,不同于强调私密性的移动侧内容,更加强调多人共享的属性。移动互联网的发展,方便人们生活的同时,也割裂了人与人在现实世界中的交流,我们似乎缺少了一种能在现实生活中互相交流的手段,而用户对TV的使用习惯恰好可以帮助人们聚在一起。试想一下小时候一家人围坐在电视前吃饭,或者周末酒吧一群狐朋狗友一起看球,这些都是电视才具备的“凝聚力”。而更进一步的Android TV支持种类繁多的输入、输出设备,我们可以做的不仅仅是看电视,这里可深挖、可想象的空间还很大。所以,不少传统的家电厂商,已经将TV端视作未来智能家居、客厅娱乐的核心展示环节,一些主打内容的互联网产品也都抓住风口,相继推出了TV端app。

1.新建一个AndroidTV工程

Android TV工程使用和Android Phone工程相同的文件结构,一样可以使用Android Studio+Gradle的方式进行编辑和构建。(这种相似性意味...

国内更常见的风格(以小米盒子为例):

7.开发与调试工具的选择

Android Studio 目前仍然是Android TV端开发的最好工具。

盒子(带USB接口)

电视的体积大,做实体机调试并不方便,而小巧的盒子比较适合做调试用,通过USB连接电脑,其调试方法和手机完全相同。

Android 平板

针对TV开发的应用,是可以在Phone和Pad上运行的,但是手机屏幕太小,Pad可以更方便的调试

更多的输入、输出设备

电视可以外接的IO设备相当多,最好是能包含尽可能多的外接设备,例如带声音输入的遥控器,带触摸板的遥控器,游戏手柄等等。

8.可能遇到的问题

内存不够

就目前的TV端市场来看,TV设备往往具有较强的图象性能(包含多个GPU芯片),但是CPU和内存能力偏弱,需要尤其注意OOM的问题。

切换到后台,进程没有被杀死

这个要看具体情况,用户的预期是什么,一般TV用户还是习惯单任务操作。

连接有线网络的问题

这个问题在Phone上应该没有,但是TV就会存在有线网络的问题,需要留意。相应的,几乎没人在TV上使用2G/3G网络。

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DebuggingMemory ManagementAndroid TVdevelopment-toolsinput devices
Tencent Music Tech Team
Written by

Tencent Music Tech Team

Public account of Tencent Music's development team, focusing on technology sharing and communication.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.