I have an app that currently supports bluetooth low energy on pre-lollipop. 
I am using things like startLeScan to do the central role.

I noticed that Lollipop introduces new apis and that the old ones are 
deprecated.

I am having one problem in particular that may be related. When I call 
startLeScan with no UUIDs it finds my devices. If I pass in the UUID of the 
same device that it found it doesn't work.

This works fine on a pre-lollipop device.

Could this be that the api is deprecated and I need to use the new 
startScan on lollipop? If that is the case how do I do this in the same 
application?

When I browse to the documentation on the web site for startScan it warns 
me that it is only available in SDK 21. Does this mean if I use it then my 
app won't work on pre- SDK 21 devices or does the sdk take care of that for 
me?

Sorry to seem like a noob, but this is the first time I have encountered 
something like this.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to