Bluetooth Low Energy (BLE) implementation below 4.3 (API 18) - android

I would like to know is it possible to implement the BLE in the device using OS of android 4.3/API 18. Because in my requirement i have to implement BLE in mobile devices having OS version 4.0 - 4.2, Any one having idea about this help.
Thanks regards.

This is possible on specific devices, with very heavy fragmentation.
See:
https://github.com/cjhuo/Android-Samsung-Ble-APIs-Bluez for Samsung devices with Android 4.1 e.g. some Galaxy S3 with original OS version.
http://developer.samsung.com/ble for Samsung devices with Android 4.2 (e.g. Galaxy S4 with original OS version)
https://www.htcdev.com/devcenter/opensense-sdk/bluetooth-smart/htc-ble-installation/ for HTC devices with Android 4.x
There may be more for other vendors...
I would advise sticking with Android 4.3 as much as possible, using the specific SDKs below 4.3 is a mess.

Related

Bluetooth Data loss on Oreo

My app gets data from Bluetooth module and I get losses only on Android 8.0. On 7.0 and 8.1.2, things are fine.
Someone told me it could be the compatibility issue between Broadcom
BT chip and Android 8.0.
I have done some testing on Galaxy S8 (Android 8.0) and LG G6 (Android 8.0) and confirmed that the data loss were apparent on those devices.
On LG V40 (Android 8.1.2) and some tablet (Android 7.0), the data loss did not happen.
I am trying to confirm whether the problem happens on all Android 8.0 devices or only on Android 8.0 devices with Broadcom chip.
If you happen to know anything, feel free to comment or answer!
Thank you

BLE Issue on samsung devices

Android BLE code is not properly working on Samsung devices whereas it works with other android devices .
Some time we are able to get values doing some work around but it is not works as smooth as we required.
I wonder about the Samsung device behavior any one help me to know about what is the main reason behind the same and what is the permanent solution of the same.
You are using the Bluetooth 4.0, you must update the Samsung mobile phone system to more than 4.3 .
Android 4.3 (API Level 18) introduces built-in platform support for Bluetooth Low Energy in the central role and provides APIs that apps can use to discover devices, query for services, and read/write characteristics
See https://developer.android.com/guide/topics/connectivity/bluetooth-le.html for details.

Why ibeacon only support android 4.3+?

Is that possible to implement iBeacon API for android 4.2 and lower with BLE?
update:
According to davidgyoung, theoretically it's possible to enable ibeacon in BLE enabled devices with android 4.3- only if building up a ibeacon API from bottom.
Bluetooth low energy technology was only added in Android 4.3+.
Prior Android devices also did not had Bluetooth chips capable of BLE (standard v4.0).
So no, you cannot make a device without a BLE chip work as a BLE chip (and even if you did, it would make no sense nor use).
Android phones must have both Bluetooth 4.0 hardware and a SDK to detect iBeacons. Generally this means Android 4.3+ and a phone made in late 2012 or later.
Samsung phones include a proprietary Bluetooth 4.0 SDK for their devices with Bluetooth 4.0 chips and Android versions 4.1 and 4.2. Devices like the Galaxy S3 shipped with this.
There is no off-the-shelf iBeacon detection library using this SDK, so if you want to detect iBeacons on these devices, you would have to roll your own.
Also, keep in mind that many if not most of these devices are already getting upgrades to Android 4.3, so this is a shrinking pool of devices for which this is possible and necessary. For non-Samsung devices and Samsung devices manufactured before late 2012, it is not possible at all due to lack of a Bluetooth 4.0 library or Bluetooth 4.0 hardware.

is that Android devices lower then Android 4.3 having bluetooth 4.0 not supporting BLE?

Actually my laptop with Bluetooth 4.0 is successfully searching and pairing with hardware cc2540 but android phones with bluetooth 4.0 and jelly beans are not able to search cc2540.
I have tried Samsung Galaxy s4 and Samsung Galaxy star and other devices. I will be really thankful if any body can tell me how to connect android Bluetooth 4.0 devices with cc2540.
Great i got my answer :) it Only works on 4.3, the earlier API versions do not have Bluetooth Smart API.

Is Android 4.0 still compatible with the ADK?

I'm thinking about investing in one of the newer android phones, but I am also really involved with developing on the ADK. Does anyone know if Ice Cream Sandwhich works with it? Thanks in advance
According to official site Android ADK, it should be compatible. And here is the List of Supported Android ADK Devices with v2.3.4+ and v3.1+.
Currently, I'm still doing ADK with Samsung galaxy tab 10.1 (with Android 3.2 updated) and still have some problem, check here
Regards,
pak
In general Ice Cream Sandwich works just fine with the ADK. The Galaxy Nexus has no problems with it whatsoever.
Keep in mind though that it's not only a OS version constraint. The device manufacturer has to integrate a supporting USB chip and the corresponding driver. Sadly there is no official list of supported devices but if you have a device which supports the ADK in an old Android version than it should generally work after an ICS update.
For new devices I would recommend buying a Galaxy Nexus as it is a Google supported Developer phone which has the best API support.
The Android 3.1 platform (also backported to Android 2.3.4) introduces Android Open Accessory support, which allows external USB hardware (an Android USB accessory) to interact with an Android-powered device in a special "accessory" mode.
I'm guessing this means anything that is currently running ICS stock will support ADK. I have the Galaxy Nexus and HTC incredible 2 (android 2.3) and it works great.
The only problem I've found is that some phones (e.g. Galaxy S2) don't include the backport for the com.android.future.usb library.
So if you're writing an application to be backwards compatible for gingerbread, it may not work on ICS. You have to rewrite the code using android.hardware.usb, which shouldn't be necessary.
It depends on device because I am not able to run adk mode on micromax tablet which has 4.0.3 and I am able to run adk mode on samsung galaxy S duos which also has 4.0.3 android OS.

Categories

Resources