0

i download it tutorial for finger paint. This app use surface view to implement painting.

However, I find that the drawing thread is locked and the system cannot unlock it when i close the app and reopen the app for four and five times.

Method call flow: surfaceCreated -> start drawing thread -> surfaceChanged -> setSurfaceSize()

In the setSurfaceSize synchronized (pThread) <---wait for drawing thread

However, sometime the thread is not unlocked by the system.

Anyone know what the problem is?

Thanks.

King Wu
  • 387
  • 1
  • 8
  • 22

0 Answers0