在Android TV上安装android移动应用 [英] Installing android mobile apps on android TV

查看:615
本文介绍了在Android TV上安装android移动应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简短的问题,因为我找不到正确的答案.

Just a quick question for i can't find proper answer to.

我已经为平板电脑和移动设备开发了android应用程序,是否可以在Android Smart TV上安装此应用程序?如果是,我可能会遇到哪些问题?像素?图像失真?还是可以正常运行或根本不运行.

I have developed android app for tablet and Mobile device, is it possible to install this app on Android Smart TV? If yes than What issues i can possibly run into?pixels? image distortion? or will it run properly or not at all.

谢谢.

推荐答案

您不能像这样在Android TV上安装任何Android应用.应用必须满足一些技术先决条件,才能将其安装在电视上.检查此链接: https://developer.android.com/training/tv/start/start.html

You cannot install any Android app on Android TV just like that. There are technical prerequisites that app should satisfy in order to make it possible to install it on TV. Check this link: https://developer.android.com/training/tv/start/start.html

此外,即使技术上可以在电视上运行该应用程序,我认为该应用程序也不会在Google Play中显示为电视应用程序",除非您在APK列表部分中上传电视屏幕截图.没什么大问题,但仍然值得一提:)

Also, even if app is technically capable of being run on the TV, I think that app will not be shown in the Google Play as "app for TV" unless you upload TV screenshots in APK listing section. Not a big issue, but still worth of mentioning :)

现在我看到了您的评论:我不想从头开始制作我的应用程序.只需要知道我的移动应用程序是否可以在电视上运行?如果我在自己的电视中设置电视的布局该怎么办?当前的应用程序?"

Now I saw this comment of yours: "I don't want to make my application from scratch. Just need to know if my this mobile app will run on tv or not? What if i set the layouts for TV in my current app?"

对于这个应用程序来说可能太晚了,但是在将来-尝试使用MVP或其他应用程序架构,在这些架构中您之间的层之间松散耦合.这样可以轻松地将一个UI层与另一个UI层交换.甚至可能提取AAR库中的常用内容,并实际上拥有两个不同的应用程序(一个用于手持设备,另一个用于电视),这些应用程序实际上仅在UI上有所不同,但是使用具有业务逻辑,用例,域模型等的相同库.

Maybe it is late for this very app, but in future - try employing MVP or other app architecture where you have few layers loosely coupled with each other. That will make it easy swapping one UI layer with another. Maybe even extracting common stuff in a AAR library and actually having two different apps (one for handheld devices, another one for TV) which actually differ only in UI, but using the same lib with business logic, use cases, domain model and so.

这篇关于在Android TV上安装android移动应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆