Is it possible to draw overlay over any screen using 3rd party app in android TV?

二次信任 提交于 2019-12-12 09:05:41

问题


I have a question related to android TV. We want to create an app for android TVs which can run as service and is able to put overlay on any live tv or any screen and is able to show some text/video. Is this possible to do on android tv with a 3rd party app.

It may be a very basic question but sorry for my ignorance. Would appreciate if someone can answer me. If I know the answer, then I will try to research more to create the app. Over internet, I could not find any answer to my question.

Thanks.


回答1:


Yes it is possible. You just need to start a transparent activity from the Service.

This will allow you to show content on the screen regardless of the input source, but ONLY if it is a physical TV with Android TV, since when you have an Android TV box connected to the TV, it is already limited to that particular input source.



来源:https://stackoverflow.com/questions/42069561/is-it-possible-to-draw-overlay-over-any-screen-using-3rd-party-app-in-android-tv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!