1

Android bluetooth: How do I get a phone to send a message back instantly after receiving a message from another phone

view story
linux-howto

http://stackoverflow.com – The message is based on what the previous phone has sent. Basically I'm making a battleships game, so phone 1 sends coordinates to phone 2, phone 2 checks if its a hit/miss and returns a true or false. I'm a little confused tho... In my handler, MESSAGE_READ checks if its a true or false and I want to send a message back, but should I really call my bluetoothserviceclass(callled connection in code) inside the handler? Is this the only way to do it? I want to send the true or false message after the checkifhit method EDIT: Also, one more quick question. Should I send different messages such a (HowTos)