1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Bluetooth Questions

Discussion in 'Android App Developers' started by ohioDroid, Feb 20, 2010.

  1. ohioDroid
    Offline

    ohioDroid New Member

    Joined:
    Jan 11, 2010
    Messages:
    309
    Likes Received:
    0
    Trophy Points:
    0
    Hello, all.

    I took a course somewhat based on java programming 3 years ago (I didn't learn much, honestly) but I was able to follow the tutorials from the Android website to set up the SDK, write a basic program with some buttons and text boxes and run it.

    I have an idea that I'd like to program. I want to Bluetooth Connect to HIDs. But have the software know how to talk to different devices. Maybe someone today wants to use a full-size keyboard, and tomorrow some other device. I'd like to receive input over Bluetooth and then pipe that to what application is running on the phone at that moment.

    Problem is, I really don't have a clue on how to start. Googling ideas didn't turn up much. Can some of you give me ideas to point me in the right direction?
  2. LtKen
    Offline

    LtKen New Member

    Joined:
    Jan 27, 2010
    Messages:
    2,637
    Likes Received:
    1
    Trophy Points:
    0
    I think I understand your question, so here's my best answer.

    You should figure out which Bluetooth Profiles you're interested in implementing, and make sure you have a full understanding of how they work.

    You should also see if you can find any source code that uses BT for data transfer, and hack up that code. Sometimes this is easier than starting your own, sometimes it's more effort than it's worth. It seems like you might be "relatively" new to this type of stuff, so I would recommend it.

    Good luck.

    EDITED for clairity.
  3. NaterGator
    Offline

    NaterGator New Member

    Joined:
    Jan 6, 2010
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Gainesville, Fl
    Look at the BluetoothChat example in the 2.1 SDK. It should get you started... it uses the RFCOMM protocol.