how to get notification in application on hdmi connection in android - 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.

Related

Communcation between devices using only BLE

I want to connect two android phone only via BLE. Is it possible? because as per my understanding using Android API I can only connect with BLE enabled devices like smartwatches headphones etc. If I run startLescan() method it only shows my fitness band and headphone.
It does not show other android phones.
Yes its possible. As the hardware equally supports to act as a master or slave, but it depends on whether the OS has provide you the required interface to make a device act as master as well as slave. THe BLE in android phone is equally capabale of becoming a master or peripherical but it depends on whehter android has exposed some interface to make it work ortherwise if not you have to root/reflash your device and make changes at OS level.
Yes, two BLE devices can communicate and has been ever since the original 4.0 release.
The change in 4.1 states that a single device can act as both a master and as a slave simultaneously to two different devices. Once device has to act as periphiral and other as master.
See this: http://www.blemobileapps.com/ble-mobile/
For android this link might be helpful for you: https://code.tutsplus.com/tutorials/how-to-advertise-android-as-a-bluetooth-le-peripheral--cms-25426
Reference: Chipsets/Devices supporting Android 5 BLE peripheral mode
Let me know if this answers your question.
It is possible to connect to Android phone with BLE.
One of the phones has to be a BLE Server and must advertise itself
(a role usually performed by devices like smartwatches and headphones) to be discovered by the other phone.
To advertise itself the app uses the BluetoothLeAdvertiser class.
Such API was added starting from level 21 Lollipop so your server phone should be at least a 5.0 Android device.
Personally I found this tutorial by Andrew Lunsford very useful for understanding how to realize such functionality.

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.

Is Android Wear device used Bluetooth to connect to Android Phone device over the air?

Followed Android Wear GUIDE.
People noted this :
The Android Wear Preview app is compatible with Android 4.3 and higher and is not available for the Android emulator.
This thing may be indicated that it will use Bluetooth Low Energy - BLE, to establish connection between Android Wear device - Wrist Watch, and Android mobile devices since BLE technology only be available on Android 4.3 or higher, and not available on Android Emulator. But I am not sure.
Currently I know this to connect Android Wear Emulator with Android Phone device :
Connect your device to your development machine over USB.
But I wonder that when Wrist Watch device with real Android Wear SDK was released,
It will be used what's thing to connect to Android Mobile device?
Please tell me,
Thanks,
p/s : If I am right, it also means the Android Mobile devices can connect to Wrist Watch will be limited since not most of Android Mobile devices always support BLE technology.
Long story short: No-one knows for sure.
Long story long: Your observations point to BLE, and looking at the emulator we can also find pieces of information pointing to a bluetooth-based connection.
But until Google releases more information on how things are going to be, we cannot say anything for sure yet.

android unable to use hdmi in creative tab and need to be notified in all(maximum) devices as soon as hdmi is plugged

may be possible duplicate of hdmi support in android.
I am working on XYZ video encrypted app.But need to manage hdmi also to overcome the encrypted video pitfall.
As per my search I found that these are not in official docs and are provided by specific vendors Api as that of Motorola.
I have explored much and found that these are vendor specific , there is no unique api or documentation to serve the needs of all the devices.
My device is:
Creative ziio 7 OS :2.2.1 build number:v2.00.13-FROYO.
But please suggest and answer the following via the google white papers or your personal experience:
If a certain android device has hdmi hardware support, then how can we detect it programmatically.
If the hardware is supported in device. Then if the connection is made to hdmi my app need to be notified about that.
(like using a recevier etc).
I am also unable to connect the hdmi in Creative ziio 7 with hdmi
cable (AWM 1.3 cable) to my hp notebook pro laptop
I have noticed about that certain vendors provide hdmi api like MOTOROLA http://developer.motorola.com/docs/motorola-hdmi-status-api/
Also we can detect the USB Plug Status in all devices by using
<action android:name="android.intent.action.ums_connected" />
So is there any way for hdmi also. But need to have a general concept to do the same for all devices.
Although there does not appear to be an official standardized way of doing without using vendor specific APIs, on later versions of Android 3.0+, it seems like the Android source code references a broadcast action intent that most vendors seem to be implementing. This intent is "android.intent.action.HDMI_PLUGGED". If you're targeting these later OS versions, this seems to be pretty reliable from my experience in detecting when HDMI is connected.
As far as I know, there is no HDMI support inherently in the platform. Each hardware vendor hacks up their own implementation via the hardware composer hardware abstraction layer. Meaning, there isn't a way for you to programmatically interact with anything HDMI related with the standard Android SDK.

Problem in Pairing the Android device with other Device through Bluetooth

I have a problem in pairing the android Device (Desire) with any other Device (e.g Nokia) through Bluetooth, and i am using the Application the (Bluetooth-Chat) provided in the samples of the SDK 2.2, the behavior of the Application is that it shows all the devices having bluetooth switched on, and also paired it but only android devices, so how can i connect the android device with any other device (e.g Nokia), what are the limitations, what needs to be change in the Code, i tried to debug the Code and find out where the problem exists but i do not found any reason.
So kindly help me in this regard, i will be very thankful to you.

Categories

Resources