google / eddystone

Specification for Eddystone, an open beacon format from Google
Apache License 2.0
3.07k stars 762 forks source link

Android API level 19 (kitkat 4.4.4) #221

Open UlyssesGomes opened 7 years ago

UlyssesGomes commented 7 years ago

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?

adriancretu commented 7 years ago

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).

UlyssesGomes commented 7 years ago

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.

davidgyoung commented 7 years ago

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

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

UlyssesGomes commented 7 years ago

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?