I have a game using the accelerometer sensor to control an item's movement. The game itself is very short - up to 2 minutes, so the known memory leak in the sensors API is irrelevant.
First game works great. When the game ends, the user has to input his/her name in a text field. When the text field is in focus, all timers/callbacks are stopped, and the accelerometer data seems to be accumulated in some sort of an internal buffer (maybe it related to the memory leak issue which we are all waiting for a solution!). I know that because when I choose "Replay", there is an annoying lag between the device's movement and the item's.
If the user is quick to enter it's name, it's a non issue - the sensor readings are not accumulated.
But if it takes time, or if the device is an N97 (and therefore the text input field is in focus longer), the lag appears. This is, BTW, the answer to a previous post I wrote in the past (http://discussion.forum.nokia.com/fo...d.php?t=196486) about N97 performance issue.
So - I'm looking for a creative way to solve it, either to empty somehow this buffer, or to limit the time the text field is in focus (specifically on N97), or anything that could solve this problem. I can't release this game before I solve this problem (at least not for N97), and it is a shame!
Any idea will help,