对于使用最新 NDK 构建的应用程序,每个触摸事件都会在应用程序日志中生成此错误消息:
E/NativeActivity(20148): channel '425e6ad8 /android.app.NativeActivity (client)' ~ Failed to receive dispatch signal. status=-11
这是一个错误还是 native 输入处理中的某些内容发生了变化? 有人知道如何在应用程序端修复它吗?
最佳答案
是的,函数发生了变化:
process_input(struct android_app* app, struct android_poll_source* source)
在 NDK 的 android_native_app_glue.c 文件中。
这是 ANR 挂起的解决方法,但在许多设备上会产生 TTY 垃圾邮件的副作用。 更多信息请访问http://ps3computing.blogspot.ca/2012/12/anr-application-not-responding.html
关于android - 当使用最新的 Android NDK NativeActivity 垃圾邮件来记录触摸事件时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18316046/