1. Download our Official Android App: Forums for Android!

Apps Bluetooth discovery in a library

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

  1. AlejandroVK

    AlejandroVK Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 1, 2011

    Jun 1, 2011
    1
    0
    5
    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
     

    Advertisement

Share This Page

Loading...