Randomly closing app - InputManagerService: Got RemoteException sending setActive(false) notification

丶灬走出姿态 提交于 2019-12-05 16:44:18

My problem was drawing on Canvas object from 2 different threads.

I was playing around Android's FingerPaint.java SDK sample and it's accessing Canvas within onTouchEvent. However I was also using SurfaceView and drawing on Canvas within my animation thread.

Therefore removing Canvas object access from onTouchEvent(main app thread) solved my problem.

Thanks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!