简体   繁体   中英

Android TV Application

I have an android application for phones and tablets. Now I want to create suitable TV application of my app with leanback support library widgets and I read different tutorials for TV apps. Now I want to know if I should add new package for tv to my current project or create new project and release different apk for tv? which one is better? does adding package to my current project have effects on apk size?

From 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.

You can use a single 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

Or you can use multiple apk support :

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM