Adapting Android Bluetooth Chat for multiple devices

Posted by Megh on Stack Overflow See other posts from Stack Overflow or by Megh
Published on 2010-06-01T14:25:09Z Indexed on 2010/06/01 14:43 UTC
Read the original article Hit count: 212

Filed under:
|

Hello, I'm doing a college project on Bluetooth for Android, and I'm trying to understand how to manage communication between multiple connected devices. Eventually I'm going to develop a multiplayer Bluetooth Game.

Currently I've adapted Android's sample app BluetoothChat to connect my three Nexxus One phones. 1 connects to 2 who connects to 3 1 sends its messages successfully to 2. 3 sends its messages successfully to 2 as well. 2 can send its messages successfully to 1 and 3, as it shares a ConnectedThread with both. But I can't figure out how to handle getting communication from 1 to 3.

Does anyone have any examples of communication between multiple devices or has done this themselves? Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about bluetooth