google/eddystone

Android API level 19 (kitkat 4.4.4)

UlyssesGomes opened this issue · 4 comments

Hi there,

i have as target api level 19, i know that the requiriment is api 22. But I wanna know if I can do some change that make possible run with api 19. Someone can solve this question?

If you're referring to broadcasting BLE then this feature only exists as a high-level API in Android 5.0 or later.
To make this work in "api 19" your only option is to not use the Android API at all, but individually work with low-level Bluetooth drivers, or use a manufacturer-provided dedicated SDK for doing BLE advertisement (if one exists, practically they don't). In practice this means its impossible to actually build an app, but rather you'll need to recompile Android from the sources (+ your own modified drivers) specifically for your own hardware (which should be BLE capable as well).

Thanks for your reply. But i'm not interested in brodcasting, i'm interested in using Eddystone to build mobile apps. Then i wanna know if this requiriment of api 22 can be changed to 19 and how i can do it.

You can use a third party library to detect Eddystone on SDK18+:

https://altbeacon.github.io/android-beacon-library/eddystone-support.html

Thank you @davidgyoung. This has helped me with some problems. Has another problem that Android Beacon Library don't give support, that is register a beacon with EID, he only offer support to read EID. Do you know another library which can help me with this issue?