Android 电视应用

Android TV Application

我有一个适用于手机和平板电脑的 android 应用程序。现在我想使用 leanback 支持库小部件为我的应用程序创建合适的电视应用程序,并且我阅读了不同的电视应用程序教程。 现在我想知道我是否应该将新的电视包添加到我当前的项目或创建新项目并发布不同的电视 apk?哪一个更好?将包添加到我当前的项目对 apk 大小有影响吗?

来自 Android TV best practice

In most cases, we recommend delivering your TV experience as part of your existing app for phones, tablets, and other devices, using the same package name and store listing. This approach lets users upgrade to your TV experience seamlessly and also lets you take advantage of the reviews and ratings you’ve earned in your app for phones and tablets.

您可以使用单个 apk :

You can bundle your TV intents, leanback library, and TV-specific code and resources as part of a single APK solution for all supported devices

或者您可以使用多个 apk 支持:

If necessary, you can use Multiple APK Support to deliver a custom binary to Android TV devices under the same package name and store listing that you use for phones and tablets.