位置: 编程技术 - 正文

ANR 的一个触摸bug转载下。。点击就会出现 error 的bug。。(触摸按钮失灵怎么回事)

编辑:rootadmin

推荐整理分享ANR 的一个触摸bug转载下。。点击就会出现 error 的bug。。(触摸按钮失灵怎么回事),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:触碰按钮,触摸按钮失灵修复小技巧,触摸ae,触碰按钮,触碰按钮,触碰按钮,触摸按钮失灵怎么回事,触摸按钮失灵怎么回事,内容如对您有帮助,希望把文章链接给更多的朋友!

转载

ANR: Application Not Responding (keyDispatchingTimedOut)ANR 的一个触摸bug转载下。。点击就会出现 error 的bug。。(触摸按钮失灵怎么回事)

This is a heads up for those Android developers that use the NDK (Native Development Kit) to write Android apps. If you are using the NDK, you are almost certainly using the glue code that Google provides in the android_native_app_glue.c file.

Chances are that in your Google Play Developer Console, you see reports of Application Not Responding (ANR keyDispatchingTimedOut.) For my app, I have of these reports on an installed base of 1.5M downloads. Consulting stackoverflow or other developer groups, will invariably yield the advice not to block the main thread. However, it is easy to cause this ANR without blocking the main thread, if you are using the android_native_app_glue.c file in your project.

If two events are generated at exactly the same time, using different sources or devices, the app will freeze. You can easily produce this with a PS3 controller hooked up to your Android device and depress both analogue sticks at exactly the same time, or release them at exactly the same time. If you do this while running an NDK based app, the app will freeze and issue an ANR.

It took me a day of debugging to find a work around for this, but I am happy to report that the following change to the glue code will stop the issue from happening. What you need to do is get events from the queue repeatedly in a loop, instead of just handling a single event in process_input() function.

I have reported the issue to Google.

Posted by Bram Stolk at 2: PM

JavaScript简单抽奖程序的实现及代码 JavaScript简单抽奖程序的实现及代码1.需求说明某公司年终抽奖,需要有如下功能1)可以根据实际情况设置到场人数的最大2)点击开始,大屏幕滚动,点

android fragment中使用startActivityForResult细节 fragment中调用startActivityForResult时,前面不需要加入getActivity()方法。如果加入,那么在onActivityResult的回调方法中是无法接受到回调的内容。

JavaScript文件处理:文件读取 在我的前一篇blog中,我介绍了在JavaScript中如何使用文件,具体重点放在如何获得File对象。只有当用户通过上传或者拖拽的方式上传了文件,这些对象

标签: 触摸按钮失灵怎么回事

本文链接地址:https://www.jiuchutong.com/biancheng/374513.html 转载请保留说明!

上一篇:android项目目录介绍之二(android工程目录)

下一篇:JavaScript简单抽奖程序的实现及代码(js数组随机抽奖)

  • 人力资源外包可以选择简易计税吗
  • 企业所得税汇算清缴账务处理
  • 销售收入怎么计算销项税额
  • 残疾人个人所得税
  • 品种法,分批法,分步法是什么
  • 增值税减免税申报明细表举例
  • 典当行借款合同需交印花税吗
  • 购入交通运输设备计入什么科目
  • 有限合伙企业属于什么经济类型
  • 鉴证服务的税率有哪些
  • 一般纳税人月底增值税如何结转
  • 非同一控制企业合并下,购买日将
  • 哪些财务指标可以用于判断一个企业即将发生财务危机
  • 货款现金收据可以做账吗
  • 股权转让企业所得税纳税地点
  • 做企业所得税汇算清缴前需要准备什么资料
  • 电子发票怎么缩小比例
  • 怎么查询财务章备案信息
  • 以前年度损益调整会计分录
  • 团建费用是什么意思
  • 无租使用房产如何征收企业所得税
  • 进货折让会计分录
  • 暂估在建工程会计科目
  • 房地产公司未售房产出租账务处理
  • windows伪装电脑mac
  • 即征即退和先征后退适用范围
  • 增值税纳税人申报表怎么填写
  • 支付公司保洁费未开发票
  • 年终奖税务筹划合法吗
  • 主营业务收入会计分录例题
  • 公司报销医疗费用公司医保里面的钱也报吗
  • 实收资本明细账模板
  • php自定义header
  • 宝塔部署django
  • html表白代码动态
  • 其他综合收益需要写二级科目吗
  • php安装openssl扩展
  • 未拿到发票怎么做账
  • python打印矩形方阵
  • 坏账准备的会计分录怎么写
  • 基本户转到法人账户会计分录
  • db2 -x
  • 哪些增值税专用发票能抵扣进项税
  • 公司一年的账目怎样算
  • 什么叫境外地区
  • 装修费用应该计入什么科目
  • 其他收益结转到什么科目
  • 股权转让会计账务处理方法
  • 企业职工充值地税怎么交
  • 所得税费用的确认分录
  • 抄报返写
  • 年终建账于年初建账,在录入期初余额时有什么不一样?
  • 农产品没有发票怎么办
  • mysql的操作
  • mysqldump -s
  • centos 怎么用
  • fedora7
  • 系统备份恢复系统
  • win7系统连接VPN失败时提示错误代码721的故障分析及解决方法
  • linux建立动态库链接
  • win10系统怎么调整字体大小
  • win10可以关闭的功能
  • win8磁盘占用率高怎么处理
  • win7系统无法创建分区也无法定位
  • 快速解决胃胀气
  • 深入理解新发展理念,推进供给侧结构性改革 心得体会
  • 着色器问题
  • 基于怎么用
  • js 单引号
  • node.js报错998
  • eclipse 不同工程中文乱码问题(可对文件以及工程单独设置)
  • jquery删除当前元素
  • angular js表达式
  • javascript怎么用
  • js window.screen
  • python打包成deb
  • 软件销售税率13还是6还是9
  • 扬帆把舵怎么读
  • 重庆国税网上怎么申报
  • 铁路土地使用税减免
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设