Detect HDMI Port in android device - android

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.com/showthread.php?t=1963785

Related

BLE Supported Android Phones

I want to know if we can detect android phones as well with BLE Scan. I am trying to develop an android app which can scan nearby Bluetooth Android devices.
I checked both android devices are compatible with BLE with this app: https://play.google.com/store/apps/details?id=com.myan.michaelyanyoga.bluetoothchecker
Note: I am using this code to develop my scanner app: https://github.com/kaviles/BLE_Tutorials. I am able to see my laptop Bluetooth on this list but not other android phones(which supports BLE).
To detect Android phones using BLE, the other device needs to:-
Have Bluetooth turned on.
Be advertising
Unfortunately, most devices are not doing this by default, which means you may not be able to use BLE for your intended purposes. You can test this by doing the following:-
Download the nRF Connect Android app.
Go to ADVERTISER from the top menu.
Toggle the "Test" advertiser.
After this you should begin to see your Android device via Bluetooth.
I hope this helps.

using android phone as a bluetooth keyboard for another android phone

I'd like to use my old android phone as a bluetooth keyboard for my new android phone. There seems to be plenty of solutions when it comes to using the phone as a keyboard for windows, but no solutions for android->android connection. How would I go about implementing one?
I do not think that you can do that via a simple Bluetooth pairing as you wish to do. But did you tried the Android App store? There are multiple Apps (which can be installed on both devices) for example "Tablet Remote" which description said "Tablet Remote let you control an Android tablet or phone with another Android device".

Implementation of Bluetooth HID device profile in Android Kitkat

I want to implement Bluetooth HID device role in An android based system.It has KitKat in it.. By default Android Kitkat has support for HID Host role... But I am unable to get an idea about how to implement the device role..
I have seen this video link
http://hsc.com/Blog/Android-Labs-Bluetooth-HID-device-implementation-your-phone-as-a-mouse-voice-control
here they said that they had changed a little in framework and classic Bluetooth application ...they had also used one flag....
I am new to Android environment. Can anyone help me...???
You have to change Bluetooth stack and build a customized ROM. The work is not simple.

Android Wear, connect to bluetooth device

I want to connect a 3rd party bluetooth device to my Android Wear watch (Samsung Gear Live). I am trying to find documentation on how to do this but I am not having any luck. All the searches I do seem to think I want to attach to a phone.
Does anyone know of a good example that shows how to connect, for example, a bluetooth heart rate monitor (or other device) to the Android Wear so I can keep a history when the phone isn't present? Is this even possible? Would it be the same protocols as doing it from a phone/tablet?
#Ryan Tensmeyer, I think #Wayne Pieksarki's answer is now out-dated. I was able to create and run a stand-alone app that used BLE to connect to a third-party bluetooth device, namely, a wireless thermometer. I used a library called SweetBlue and tested the stand-alone app on an Android Wear Moto 360. It worked great -- no phone required!
It is not possible to connect 3rd party bluetooth devices to an Android Wear watch as you describe. You will need to pair your heart rate monitor with your phone, extract the data you want, and then use the Data Layer API to send the data to the wearable for display to the user.
EDIT: Android Wear devices now support the ability to pair with Bluetooth devices.

how to get notification in application on hdmi connection in android

I need help regarding the hdmi port status of Android device.I want my application to be notified on connection through hdmi port of android device or tablet.
As per my searching,there is no android api available to do so but i came across motorola hdmi status api and motorola dual screen api,these seem to work only for motorola device.
Please provide me information on this, and is there any other way to acheive this.
Thanks
Correct, there is no Android API for detection of HDMI presence though some vendors are adding their own API's, like for some Motorola devices. Besides that, you can't do much more since vendor HDMI services on Android devices typically run as OS level services and are not accessible to 3rd party apps.

Categories

Resources