Problem in Pairing the Android device with other Device through Bluetooth - android

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.

Related

Android bluetooth settings show duplicate names for same bluetooth device

I am working with a firmware team that writes firmware on a QCC3056 Qualcomm chipset that supports earbuds and I develop an android application that supports the BLE earbud Bluetooth device. The earbuds also support google fast pair and this feature requires the BLE mac address to be rotated every 15 min.
So the issue I am seeing here is the android Bluetooth settings recognize two Bluetooth devices with the same name(one is classic and the other one is BLE). I can tell by the mac addresses that one belongs to classic and the other belongs to the BLE address. We are able to connect to the classic instance. However, we are unable to connect to the BLE instance. We would like just one name to show up and the user should be able to connect to it. The firmware team thinks this is expected behavior(two names showing up). As far as I know, from the android end, we don't have any control over the Bluetooth settings. So I wanted to understand if this behavior is expected. I have tested this scenario with SONY WF-1000XM3 which supports Google Fast Pair and I have noticed only one name showing up.
It would be great if anyone can suggest the best possible approach I can take here.

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.

Bluetooth device detection disconnected/connected alert in android(eclipse)

I am an student developing an android application that will need to access the Bluetooth connection/disconnection.
I am new to android but I'm studying hard to be more familiar in creating android application.
please can anyone help me how to check if Bluetooth device is connected or not?
and also i want to detect if device is suddenly disconnected.
Please see these docs:
http://developer.android.com/guide/topics/connectivity/bluetooth.html
Specifically you're looking for:
Querying Paired Devices
and
Discovering devices
Also see this question:
How to programmatically tell if a Bluetooth device is connected? (Android 2.2)
EDIT: Some tutorials for you:
http://developer.android.com/training/index.html
http://www.tutorialspoint.com/android/android_bluetooth.htm

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.

Multiple apps connect to bluetooth issue

I have 2 applications w/ the bluetooth code derived from the Bluetooth Chat sample. Individually they work fine. Each app connects via SPP to separate devices. The issue I'm having is on phones with Android 2.1, after the first app connects to its device, you can press Home and get to running the other app, but as soon as the connection is made to the other device with this other app, both apps get the "Sorry! The application xyz (process com.xyz) has stopped unexpectedly. FORCE CLOSE" dialogs. There are try/catch blocks throughout the bt code, for which the catches are not executed. Neither app will then connect (individually) until after bluetooth is turned off then on again. This does NOT happen when these same apps are running on a Samsung tab with Android 2.2 - both apps can run and connect to the devices simultaneously just fine and you can switch between the apps, no problems.
Is this specifically an Android 2.1 issue or something else? Whether it is or not, I need some way to prevent the app from connecting if another app is using bluetooth. I couldn't find anything in the Android APIs that would allow finding this out. Is there any way to coordinate/manage this? Does anyone have any specific insights into this whole issue?
I think it is a bug in the samsung bluetooth stack.
upgrading the my samsung to cyanogenmod fixes it.
see this link
http://www.samsunggalaxysforum.com/firmware-problems/connection-problems-sgs-bluetooth-spp-device/

Categories

Resources