位置: 编程技术 - 正文

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

  • 银行贴现属于贷款吗
  • 企业贷款合同签订后多久放款
  • 5000以下固定资产怎么做账
  • 待转销项税额明细科目核算一般纳税人
  • 香港保险代理人佣金
  • 航空运单能当发票使用吗
  • 企业所得税该如何计算
  • 机关单位工会经费的来源包括
  • 跨年收到暂估费用的发票如何处理
  • 支付宝已经支付的钱怎么退回来
  • 企业购买扶贫物资怎么入账
  • 个人在电商平台购买跨境商品需要缴纳什么税
  • 建筑行业小规模企业所得税税率
  • 税收分类编码选错了有事吗
  • 进料加工贸易是什么意思
  • 预提租赁费会计处理
  • 开票软件上怎么抄税
  • 如何确定赊销额度
  • 建筑企业法定代表人和建筑公司资质不是一个人
  • 资产负债表资产总额为负数
  • 公司收到残联补助如何开票
  • 自然报废产生的固定资产净损失计入什么科目
  • 食堂买菜怎么算
  • 运输发票备注规定
  • 基金投资于什么
  • 新准则待摊费用
  • php遍历显示多维数组
  • 新手最适合用哪一款
  • 计算机视觉就业前景
  • 滞纳金不得超过税款
  • 中央公园商场
  • pytorch自动编码器
  • ChatGPT 被大面积封号,到底发生什么了?
  • 毕业设计基于51单片机多功能电子钟的设计
  • Github ChatGPT-Web:了解最新AI技术的前沿应用!
  • 贸易公司结转销售成本凭证怎么做
  • 连续3个月没有休息怎么发朋友圈文案
  • 非财政补助结转和非财政补助结余的区别
  • python报错怎么办
  • 收到的普票金额多开了怎么处理呢
  • 收购公司款项的会计处理
  • 购货销售折让会计分录
  • 会计为什么不能有0
  • 投资性房地产的后续计量
  • 关于国内旅客运输的规定
  • 幼儿园收取的生活费免税吗
  • 可供出售金融资产可以转为交易性金融资产吗
  • 租赁收入相关的会计准则
  • 专项应付款余额转入资本公积的规定
  • 哪些福利费没有附加税
  • 新建的企业
  • MySQL使用show status查看MySQL服务器状态信息
  • 联想Thinkpad怎么进入安全模式
  • windows允许多用户登录
  • win功能下载所需文件
  • win7更改win10系统要怎么更改
  • DWHeartbeatMonitor.exe进程是什么意思 DWHeartbeatMonitor是安全的进程吗
  • linux之间拷贝文件
  • windows10周年纪念版
  • linux内核模块命令
  • cortana可以用于搜索本机文件吗
  • 怎样设置从硬盘启动给电脑做系统
  • opengl画矩形函数
  • 3d引擎开发
  • jQuery实现ctrl+enter(回车)提交表单
  • jquery注释有哪几种
  • 转换目录的命令
  • python网络爬虫教程
  • node .js
  • 你知道的,是我的兄弟 我要把天赋
  • javascript entries
  • OnBecameVisible和OnBecameInvisible ,OnWillRenderObject
  • 安卓抽象类
  • pycharm flask框架
  • 四川地方税务局网址是什么
  • 医保参保应保尽保
  • 温州地方税务局
  • 山东2022新生儿数量统计表
  • 税务局人事工作总结(税务局工作人员年度工作总结报告)
  • 深圳坪山税务局电话人工客服电话
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设