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.
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.