• Post Reply Bookmark Topic Watch Topic
  • New Topic

Libgdx and Bluetooth on Android  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have been trying for months on getting my poker game Bluetooth functionality to work but I am beginning to suspect that I might have a wrong understanding of how Bluetooth data exchange actually works, hope someone here could point me to the right direction.

Firstly I have successfully created the scanning and connecting part as shown (Both device are connected):

Once I hit the "Start Game" button on one of the device, the game start on that device but on the other device, it doesn't start the game. Instead it merely add the string "start" to my list, acting as if it is a player.

The following is my LibGDX bluetoothscreen code (I will keep it short for easy reading):

This part of the code above doesn't seems to work, what am I doing wrong?. if( s.equals("start") ) { startGame(); }

Apologise if I did not explained this well. Every little tiny help is greatly appreciated.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!