I see in the Android API what can be used startLeScan()to scan BLE devices at API levels up to 18. Unfortunately, this method is now outdated, and the recommended alternative startScan(), which is only available at API levels 21+ .
startLeScan()
startScan()
Since API level 21 is only available on Lollipop or higher (about 30% of all devices), I would prefer to use startLeScan()it since it hits most of the devices, but I'm not sure how to go about it. Should I create different implementations for each API level, or is it just impossible to create an application using BLE scanning in versions below Lollipop?
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1621568/More articles:How to prevent the flow of a Mixpanel funnel? - mixpanelhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621564/how-do-i-reset-my-counter-when-it-gets-to-the-end-of-my-array&usg=ALkJrhi0j4-kKzi5julWIQYer1YFzozfQgHow to efficiently get top K-like cosine-like document using python? - pythonUsing a JS Variable Name for a Name An Additional Variable - jsonWhat is the time complexity of the lower () / higher () TreeSet method in Java? - javaКак работает разбиение DStreams (для updateStateByKey()) и как его проверить? - performanceAny reason my ViewBag is not working? - asp.net-mvcHow to get JSON data in the correct format using PHP - jsonObject does not have _set 'attribute, Django - pythonDoes Windows "cmd.exe" argue arguments differently? - cAll Articles