|
I'm developing my Android app for Nook color which runs Froyo. It's a game that locks the canvas and draws like the Lunar Lander example and handles touch events similarly. However, on touch events, the synchronized (surfaceHolder) block only sometimes has an extremely delayed execution (because it can't get the surfaceHolder) and I get an ANR because of it. The app works fine on other Android devices. Does anyone know why I'm not able to get a lock on the surfaceHolder even though the run() function is constantly able to?
|
# ¿ Jul 9, 2012 21:32 |
|
|
# ¿ May 4, 2024 22:51 |