Can I display other content on an Android screen and on a screen connected via HDMI?

I am wondering if I can develop an application where I can have the main content displayed on the big screen, connected to my Android via HDMI, and use the Android touch screen as a controller displaying various content.

So far, the video that I saw about the Android HDMI function only displays the phone screen on a large screen.

+4
source share
4 answers

You can use the Android Presentation API (API 17). It works very well.

Your presentation is related to Activity, which allows you to display, for example, Live Stream on a TV (for example, HDMI), and use the phone’s display as a remote control. I did this in the application, and also out of laziness I added a second application for the second phone, which is used as a Bluetooth remote control.

Hope this answers your question.

+2
source

The flinger surface sees only two different types of graphic buffers, frame buffers for the normal display of ui, and overlay buffers for video and camera previews. Therefore, frame buffers (or overlay buffers) must be transferred to the hdmi display controller when the hdmi cable is connected. But, unfortunately, there is no public api to control this kind of data flow. It heavily depends on how hardware overlay or hdmi device drivers are implemented by the chipset manufacturer or device manufacturer.

+1
source

I don’t think you can do this unless you are developing a device for which the vendor has published the HDMI API, for example, for some Motorola devices. Otherwise, they usually have some hdmi OS service (not available for applications) that uses ioctls and / dev / access to control hdmi (again, not available for unsigned applications).

+1
source

You can use the defect in the HDMI HDMI interface to achieve this. Your video input goes directly to the Android output, but you can use a different screen layout that will not be displayed in HDMI due to an overlay problem.

0
source

All Articles