Android Question Connecting and Sending Bluetooth commands

moster67

Expert
Licensed User
Longtime User
I have never programmed with Bluetooth. I have seen many examples here on the forum (I have seen code how to intercept but not for sending) although I think I did not find anything what I want to do but as I said, I am new to this so I may very well have not understood the related discussions.

Basically, I want to write an app which emulates the physical remote-control present on a headset. For instance, from my android app, I want to send bluetooth commands to another android phone (paired with each other) which would permit for instance increasing/decreasing volume, changing song in playlist, opening a phone call etc on the other android phone.

I guess what I want to know is how I should communicate over bluetooth, what protocol shall I use. The sending android phone has IceCream Sandwich (cannot be upgraded). Is the BLE library relevant but it seems it does not support IceCream Sandwich?

Any help or link for an example would be appreciated.
Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

moster67

Expert
Licensed User
Longtime User
Then I guess BLE is not possible since the app will run on an IceCream Sandwich device..
Maybe someone else has some information what approach I need to take..
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
Oops, I was not aware of this.
I will study this and the SPP profile further.
 
Upvote 0
Top