use of nfc.sample.tictactoe.protocol.GameProtocol in project Samples-for-Java by blackberry.
the class StartGameScreen method initNewGameMessaging.
public void initNewGameMessaging() {
try {
// send bid message over SNEP
proto = new GameProtocol(this);
my_bid = new ProtocolMessageMasterBid();
proto.sendMasterBid(my_bid);
proto.listenForMessages();
} catch (NFCException e) {
Utilities.log("XXXX StartGameScreen:" + e.getClass().getName() + ":" + e.getMessage());
Utilities.popupMessage("Error: separate devices and try again!");
}
}
Aggregations