位置: 编程技术 - 正文

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

  • 企业用于职工的个人住房是否可以不缴纳房产税?
  • 出口退税免税有限额吗
  • 个人补缴的医保要做账吗
  • 金税四期会计人员如何提升自己
  • 无形资产加计扣除最新政策
  • 以前年度损益调整账务处理分录
  • 蔬菜专用发票在哪里开
  • 预付账款和暂估入账的区别
  • 未确认融资收益怎么算
  • 无形资产摊销为什么计入管理费
  • 子公司注销应收母公司往来款
  • 支付外汇货款
  • 新增员工个人所得税申报表?
  • 资产负债表的资产方能够提供的信息包括
  • 公司给客户退款会计分录
  • 政府专项补助购置固定资产进项税可以抵扣吗?
  • 税收和征税
  • 零税率发票可以冲成本吗
  • 股东投资款印花税多少
  • 公司购买环保材料会计分录
  • 改扩建要计提折旧吗
  • 外资企业投资国内企业程序
  • 工龄补偿款
  • 公司代扣代缴的保险费有哪些
  • 怎样打开电脑wifi连接
  • 工伤保险公司缴纳部分为何是0
  • 手机如何测试网络稳定性
  • php中this和self的区别
  • 如何取消windows启动管理器
  • 公司过节发红包怎么入账
  • 个税多缴纳如何低下个月的税
  • 存入保证金账户分录怎么写
  • macbookair邮件
  • 股东借款给公司会计分录
  • linux创建一个文件并写入内容
  • 高新技术企业如何在电子税务局备案
  • Windows7配置启用ca证书
  • 所得税费用科目的贷方登记
  • 专票和普票都有发票吗
  • 不能加计扣除的研发费用在辅助账怎么反映
  • linux lab安装
  • 新公司筹建期要做账吗
  • 为什么结转材料成本差异
  • 存货出入库需要什么凭证
  • 结转应交税金的分录
  • 租金收入怎样缴纳个税
  • 购买的手机可以退货吗
  • 固定资产一次性折旧政策2023
  • 税前列支的项目
  • 车辆购置税 购置
  • 印花税凭证名称如何选择
  • 应付账款不需要支付了会计怎么处理
  • 公司只有收入没有支出违法吗
  • 实收资本的入账金额包括消费税吗
  • 固定资产不折旧直接进费用
  • 货样广告品出口如何申报
  • Windows Server 2008下共享资源访问走捷径
  • ubuntu的软件
  • win10系统打不开控制面板
  • windows 10 周年更新
  • ubuntu kylin 14.04下载 ubuntu优麒麟14.04 lts下载地址
  • windows7可以打开多个窗口
  • linux系统的安装配置
  • 在对linux系统中dir
  • linux解密
  • 双系统怎么屏蔽另一个磁盘
  • 安卓的系统设置在哪
  • perl中qw
  • unity3d 帧同步
  • js array insert
  • js获取父级元素
  • jquery 报表
  • 检测ip地址命令
  • jQuery版AJAX简易封装代码
  • pass python用法
  • Python selenium 三种等待方式解读
  • jQuery Ajax 全局调用封装实例代码详解
  • python中的字符串的英文
  • 国地税联合办公
  • 北京企业所得税汇算清缴时间
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设