hdmi

Can we turn on/off hdmi settings from our app programmatically

自作多情 提交于 2019-12-06 03:39:27
I want to load hdmi settings (check box Turn on HDMI, HDMI Resolution Selection dialog box) in my custom app activity. And if I change these settings in my custom app the settings will be changed in actual device settings. Is it possible? Thanks any help will be appreciated. Those are unique to your device -- normal Android devices with HDMI support (e.g., Nexus 10) do not have such settings. Hence, please call your device manufacturer and ask them if they have an API for such settings. 来源: https://stackoverflow.com/questions/18272227/can-we-turn-on-off-hdmi-settings-from-our-app

Use libCEC + USB dongle in Android app

百般思念 提交于 2019-12-05 05:54:00
My goal is to send HDMI CEC commands from a standard (i.e non-system) app running on an Android box equipped with Pulse-Eight's USB dongle. Following these instructions I successfully managed to compile libcec for Android and execute it as root on the box, with this command: echo <my-cec-command> | cec-client -s /dev/ttyACM0 where /dev/ttyACM0 is the device file created by the system when plugging the dongle. However the permissions of this file prevent the command to be executed by a non-root user (therefore it cannot be executed from my Android app). On the other hand the app can actually

How to send HDMI-CEC commands from Amlogic 905x board to the TV using sysfs

不问归期 提交于 2019-12-05 03:48:57
问题 I want to send raw HDMI-CEC commands (adb shell) from an Amlogic 905x ARM board (Android 6) to test the functionality. The board is rooted (tested, 'adb root' works) and connected to a TV with CEC capabilities (enabled, tested with video game console too). First of all I want to clarify if the core functionality is built in, so I guess that if the right CEC command is sent to the right channel, I should notice a change of any kind to the TV set. I want to test it at a lower abstraction level

Android - disable HDMI

孤街醉人 提交于 2019-12-04 02:31:38
One of my Android projects needs to switch between 2 HDMI inputs from time to time, possibly once a minute. One HDMI input is from an android device's HDMI output and one is from an external, uncontrollable source. I found an HDMI switch that automatically switches between 2 sources when the signal becomes available. My question is, is there a way to temporarily (one minute for example) cut HDMI output of my Android device so that the switch can automatically use the second HDMI input? Then, I need to restore the HDMI output so that the switch will show my device's HDMI output. I found this

Black bars with HDMI Adapter on iPad 2

三世轮回 提交于 2019-12-03 09:43:13
My app supports HDMI Output. I asked the code for the resolution of the TV and got 1920 x 1080 px for externalScreen.bounds OK, everything fine. I've setup my views and tried it on the TV ... BUT: There were black bars on the bottom / top / sides of the screen though the TV was detected correctly as 1920 x 1080 and my view is also set up correctly? Why is the format wrong? P.S. When I mirror the home screen, it also shows the bars, when I watch a video with the Youtube App, the black bars disappear? Thank you for your help! Update: OK, although I got this output in my console: A new screen got

Android - send HDMI CEC commands to TV - minix - libCEC

吃可爱长大的小学妹 提交于 2019-12-02 18:44:40
i'm working on a Minix NEO X8-H (Android media center, 4.4.2) and i need to send HDMI-CEC command to TV: when my App receives a call i want to change automatically the TV Source to the Minix hdmi source. Actually the Minix offer some options to enable HDMI-CEC and the media center software XBMC is reported to support CEC. But only in "receive mode" i guess: the user can command the Android device using TV remote. I want to work the opposite way. I browse XBMC's source code and i found very interesting code but do not know if it can be useful to me. I found the serial device that get HDMI-CEC

How do i disable hdmi port of a android device without rooting it?

我只是一个虾纸丫 提交于 2019-12-01 06:21:09
I want to know whether there is a way to disable hdmi port of a android device without rooting it? As of Android 4.2 (SDK level 17), the DisplayManager APIs ( http://developer.android.com/reference/android/hardware/display/DisplayManager.html ) let you detect external displays and the Presentation class ( http://developer.android.com/reference/android/app/Presentation.html ) lets you define alternative UI for external displays. Before that SDK level, though (e.g. on Kindle Fire devices running 4.0.3 SDK level 15, which have HDMI ports), there is no supported way to detect or disable external

Detect HDMI Port in android device

送分小仙女□ 提交于 2019-11-30 21:48:00
I am working on a Android development app that needs to detect HDMI Port. Can some one guide me how can i detect HDMI port in andorid device programatically. Thanks in Advance You could try to listen to the broadcast hidden android intent "android.intent.action.HDMI_PLUGGED" if you use android 4.0 or higher or if you use Sony device: "com.sonyericsson.intent.action.HDMI_EVENT" Check this tutorial for more information: http://developer.sonymobile.com/2012/05/29/how-to-use-the-hidden-hdmi-api-tutorial/ There are also 3rd party libraires like KernelSwitchObserverLib http://forum.xda-developers

Detect HDMI Port in android device

谁说胖子不能爱 提交于 2019-11-30 05:43:33
问题 I am working on a Android development app that needs to detect HDMI Port. Can some one guide me how can i detect HDMI port in andorid device programatically. Thanks in Advance 回答1: You could try to listen to the broadcast hidden android intent "android.intent.action.HDMI_PLUGGED" if you use android 4.0 or higher or if you use Sony device: "com.sonyericsson.intent.action.HDMI_EVENT" Check this tutorial for more information: http://developer.sonymobile.com/2012/05/29/how-to-use-the-hidden-hdmi

How to check the HDMI device connection status in Android?

走远了吗. 提交于 2019-11-27 14:05:48
I need to detect whether an HDMI device is connected or not to my Android device. For this I'm using a BroadcastReceiver and it is able to detect also. But with BroadcastReceiver I'm unable to handle the scenario when the HDMI device is connected even before my application was launced. In this case the BroadcastReceiver is unable to find if any HDMI device is connected or not. Is there any way I can get to know if any HDMI device is connected or not at any point? I came up with this using the other answers and some from elsewhere: /** * Checks device switch files to see if an HDMI device/MHL