Bluetooth multiplayer

I’m currently trying to make a bluetooth multiplayer game, but I’m rather new to bluetooth and i don’t know how i would go with connecting to a server to client and client to serve and seding messages?, I readed: http://developer.android.com/guide/topics/connectivity/bluetooth.html, but I don’t know how achive such task.

Note: I got referred here by a book I’m reading for android programming.

Hope you guys can help,

Thanks for reading.

It’s basically the same thing as making a simple Java server and client, using ServerSocket and Socket.
Why don’t you find an example of that, and port it to Android when you’re certain of the procedure?

Don’t try it all it once. I find it best to test as I write. It’s easier to fix errors this way. That way i only have to deal with one or two errors instead kf 50 at a time. First discover devices and print them to a text box. Then pair with one. Then expand your program to send a few lines of text. Now you can design some sort of message system for networking.

I like the idea, but I don’t have 2 android devices to test on :/, only 1

Do you have any other Bluetooth devices such as a USB dongle you can learn with? You can set up a Bluetooth serial port and use putty to send and receive text with your phone.

http://www.ehow.com/how_7242162_add-bluetooth-serial-ports.html

Well I can borrow other phones to test with, but the problem is that there not android :/, is there a way to “emulate” a Bluetooth device?