编程语言
首页 > 编程语言> > Android TV应用程序

Android TV应用程序

作者:互联网

我有一个Android应用程序的手机和平板电脑.现在我想用leanback支持库小部件创建我的应用程序的合适的电视应用程序,我阅读不同的电视应用程序教程.
现在我想知道我是否应该为我当前的项目添加新的电视包或创建新项目并发布不同的apk for tv?哪一个更好?我的当前项目添加包对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 07001 to deliver a
custom binary to Android TV devices under the same package name and
store listing that you use for phones and tablets.

标签:android,android-tv
来源: https://codeday.me/bug/20190701/1349682.html