
Sanyo SCP-8100
Sanyo 8100 Key events skipping problem
I have a situation in which networking activity is going on with some UI key press events are also to be handled simultainously. Now the thing is, in 8100, I can see that some key press (and some key release) events are being skipped.
I tried a simple key press and release tracking by printing the key press and release count on the device. And it clearly showed that the key press and some key release events are being skipped.
Now...The same build works perfectly on Samsung A620 (Sprint) phone. It gives a delay or the keypress and release events but it doesn't skip them.
The normal key handling logic of the game looks ok. The game has online and offline mode and in offline mode everything is just fine. But in online game, it has these problems.
I also tried one more sample program having a thread with blocking of 4 sec (while loop) and 4 sec sleep. In this scenario, it doesn't skip any key events. So do you have any idea what can be done with a networking code to get rid of this problem?
Can the networking code be blocking so that it can block the key events? And if yes..is there anything that I can do in the key handling code?
The situation is the network operation will go on along with processing user input. I have the networking stuff inside a jar file and in the class which actually does this operation has a Thread which does some "keep alive" stuff every 10 sec. It also sends and receives data to and from server continuously for keeping track of the online users.
And while doing this activity the game goes on. So it means in the game, we have 2 threads, one for the user play, and another for networking. I can see from the networking signals on the top of the device (some arrows for incoming and outgoing data) that the networking activity is going on all the time in online mode.
And still I need to process the key inputs.
Is it possible in this phone? For this game, a key input delay is affordable but the key event skipping is not good.
Also, it seems this is Sanyo specific as the same build works on Samsung A620 (Sprint).
Please let me know.
Thank You!!
Anand.
Replies
No replies to this message
Shop for accessories specifically compatible with the Sanyo SCP-8100.


