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

Apps Bluetooth Speed...

Discussion in 'Android Development' started by Rinkwraith, Feb 18, 2011.

  1. Rinkwraith

    Rinkwraith Lurker
    Thread Starter

    Hi,

    I've been writing a small test project that (to cut a long story short) needs to send quite small images from a Windows PC to an Android device over Bluetooth. This works - but the speed is horrible.

    I'm using a Bluetooth server socket on the droid, and (in a separate thread) a loop which queries how much (if any) data is available and reads it into the buffer at a set position.
    E.g. InputStream.read(buffer, position, InputStream.available()) etc.
    Then if the active data in the buffer is above a certain number of bytes, a handler is called and the main thread decodes the image from the buffer.

    A 3KB image is taking about 4 seconds. That seems slow to me, so I'm trying to figure out where the bottleneck is. I guess it *could* be at the pc end but I'm wondering if anyone has a theory if anything is wrong at the Android end? And whether anyone has written an app (using RFCOMM/SPP sockets) which is running significantly faster?

    Cheers.
     

    Advertisement

Loading...
Similar Threads - Bluetooth Speed
  1. Kishor Bapat
    Replies:
    1
    Views:
    79
  2. Android News
    Replies:
    0
    Views:
    51
  3. Android News
    Replies:
    0
    Views:
    2
  4. Rodnei
    Replies:
    0
    Views:
    73
  5. Rob
    Replies:
    1
    Views:
    110
  6. Bearsyzf
    Replies:
    10
    Views:
    279
  7. Darkiedroid
    Replies:
    8
    Views:
    379
  8. polishtiger
    Replies:
    0
    Views:
    1,050
  9. Anthony2816
    Replies:
    0
    Views:
    132
  10. FuriousDYNAMITE
    Replies:
    2
    Views:
    104

Share This Page

Loading...