Finding other Android devices by Bluetooth

Discussion in 'Application Development' started by usml, Apr 18, 2010.

  1. usml

    usml Active Member
    15

    Dec 28, 2009
    38
    0
    15
    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
    143

    May 29, 2009
    1,217
    130
    143
    Denmark
    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...