I am working on a multiplayer game ....
Here is what the structure of my program(s) luks like ....
I have the BlueToothMidlet which implements Runnable .... creates server/connects to a server according to the choice provided .... as soon as the client and server are ready .... i do Display.getDisplay(this).setCurrent(MyGameCanvas) ....and the canvas does all the initial work each player needs to do .... after each player is done with his work ... he should tell the other player that he is done ....
now the run method of BlueToothMidlet is always running .... i created another thread (Thread t ) to send and receives messages from client/server..... and when i want to send/receive message i do "t.start()" so that each player knows that the other player is "done" ... but i am getting an "IllegalThreadStateException" in the BlueToothMidlet's run method ...everytime !!
Also i want to send messages as soon as each player is done with his turn to play ....
What might be the problem ??
