1. Are you ready for the Galaxy S20? Here is everything we know so far!

Bluetooth discovery in a library

Discussion in 'Android Development' started by AlejandroVK, Jun 1, 2011.

  1. AlejandroVK

    AlejandroVK Lurker
    Thread Starter

    Hey everyone,

    I'm in the middle of importing a Java J2SE jar that is used as a support library to Android. One of the functionalities this library provides is Bluetooth device discovery, connection management etc.

    When it comes to discovering other devices, I get lost...all examples found seem to require that I hava an Activity class, which is not the case (this is just a library that will be used in an app with an Activity eventually). Information here Bluetooth | Android Developers is not very clear (I think) regarding this...

    I just need to call the startDiscovery() method in a POJO of my own with its own thread and collect the information about the discovered devices. Anyone tried this before?

    Regards
    Alex
     


Loading...

Share This Page

Loading...