位置: 编程技术 - 正文

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数组随机抽奖)

  • 收款金额比开票金额少是对方扣的手续费
  • 旅游业发票税率是多少
  • 企业递延所得税费用的计算公式
  • 无偿赠送商品要纳企业所得税吗
  • 股息红利所得如何缴纳个人所得税
  • 赠送的物业费需要交个税吗
  • 研发费用在企业所得税中怎么扣除
  • 提供有形动产租赁服务适用税率为13%
  • 业务招待费的进项怎么算
  • 工信部联企业[2011]300号 小型企业
  • 小规模纳税人酒水税率
  • 烟酒发票可以抵扣所得税吗
  • 三万以下免税如何开票
  • 印花税税基含不含增值税
  • 出口报关和不报关的区别
  • 销售利润率和毛利率计算
  • 琥珀销售用语
  • 取得劳务收入的会计分录
  • 管理费用和财务费用在资产负债表怎么填
  • hbuilder打包apk
  • PHP Warning:PHP Startup: in Unknown on line 0解决办法
  • 默认网关为什么有两个
  • macOS Big Sur 11.3 公开测试版正式推送(附更新内容)
  • 固定资产残料收税吗
  • 季节性用工政策
  • 以下关于static
  • 求源代码
  • 杭州西湖古风
  • 发票密码区如何调整
  • 联邦学习攻击与防御综述
  • 利润表净利润等于未分配利润吗
  • js对象模型是什么
  • 开票品名不一样有什么关系
  • 企业的管理费用占比
  • mybatis拦截器执行顺序
  • 数据库my sql
  • 没有数字的公章有效吗
  • 专家评审费属于咨询费吗
  • mysql 执行过程
  • 递延所得税资产账务处理
  • 会计账簿有哪些作用
  • 开办费的最新账务处理2021
  • 应收账款计提减值准备会计处理
  • 辞退福利计入什么明细费用
  • 外购货物会计分录
  • 政府征税再进行补贴对消费者福利的影响
  • 固定资产处置款怎么入账
  • 小微企业即征即退
  • 个人经纪代理服务
  • 期末账面余额是什么意思
  • 附条件的行政行为有哪些
  • excel日记账系统的设置
  • CREATE FUNCTION sqlserver用户定义函数
  • sql比较两个集合
  • windowsxp教程
  • tcpsyncookies
  • 如何解决脑供血不足
  • fedora14虚拟机安装教程
  • win7系统怎么把桌面文件放到d盘
  • 在u盘安装软件插上就能用
  • win8开始屏幕设置
  • linux中rwx
  • cocos2dx AudioEngine初体验,音效播放结束判断测试
  • 很实用的话
  • android基础入门教程
  • 进程 python
  • python做排序
  • javascript 作用域
  • jquery教程w3school
  • python怎么多进程
  • android中menu
  • python语言例子
  • 票据代码和票据号码是什么意思
  • 湖南历年社保缴费
  • 关于增值税纳税人的规定,下列说法正确的是
  • 广州2021社保费
  • 青海税务发票查询
  • 医保电子凭证怎么激活
  • 怎么查询公司法人电话号码
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设