Finding other Android devices by Bluetooth


Last Updated:

  1. usml

    usml Active Member This Topic's Starter

    Joined:
    Dec 28, 2009
    Messages:
    38
    Likes Received:
    0
    Anyone can write an application that allow communication between two Android devices via bluetooth. My question: is that a good practise to have an application running in background and constantly trying to discover other devices (using bluetooth adator scan for other devices EVERY MINUTE, or every 5 minutes)?
    Here's what I see in document: "Caution: Performing device discovery is a heavy procedure for the Bluetooth adapter and will consume a lot of its resources." Will the frequent Bluetooth scanning consume lot of battery? Will that make the phone very slow (if the user happen to be using the phone)?

    The document I'm referring to is here: Bluetooth | Android Developers

    Thanks
     

    Advertisement
  2. KlaymenDK

    KlaymenDK Well-Known Member

    Joined:
    May 29, 2009
    Messages:
    1,217
    Likes Received:
    130
    Active scanning is always going to draw lots of energy. You might not notice the work load, but you will certainly notice the battery drain! With the current state of "expected" battery life, I would recommend against doing that. :eek:

    Even on ancient Palm pda's, where users could "beam" stuff over an IR link, the normal habit was to have IR discovery turned off until needed.
     

Share This Page

Loading...