位置: 编程技术 - 正文

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

  • 加计扣除10%进项税会计分录 申报表
  • 结转已销商品的成本的会计科目有哪些
  • 进项都抵扣完了怎么办
  • 发票查验是什么字体
  • 个人独资公司需要报税吗
  • 转让实物资产税务处理
  • 退休工资要缴纳税吗
  • 承包经营承包费增值税
  • 发微信验证消息
  • 网银 密码器
  • 建筑工程项目的全生命周期包括
  • 应返还财政额度是什么科目
  • 外汇收支申报流程
  • 房贷可以抵个人所得税吗
  • 技术开发费加计扣除优惠政策
  • 公司合作建房什么意思
  • 财务费用是否存入银行卡
  • 京挑客怎么赚钱
  • 企业未代扣代缴个税
  • 滴滴开票是专票还是普票
  • 以前年度损益调整
  • 银行拒付汇票金额的救济方法
  • 苹果电脑快速启动键是哪个
  • vue.js前端
  • 布列塔尼岛屿
  • 工作服列支什么科目
  • sass和less的区别使用
  • php 数学函数
  • c语言中函数的实参和形参
  • 准予扣除业务招标的情形
  • 利润表没有本月金额只有本年累计可以吗
  • 公司租赁车辆的保险费可以扣除
  • 有限合伙企业的执行事务合伙人
  • 26个字母!
  • rust 前端开发
  • mysql数据类型怎么判断
  • SQL Report Builder 报表里面的常见问题分析
  • 在建工程账务核算及处理
  • 以前年度损益调整结转到本年利润吗
  • 个税申报信息怎么填
  • mdf和ndf文件
  • 产品成本核算的方法
  • 在建工程转出到什么科目
  • 研发人员工资是实发还是应发
  • 除了住房公积金还有什么基金
  • 公司向个人借款怎么做账
  • 转出未交增值税借方余额表示什么
  • 股票质押式回购交易是什么意思
  • 融资租赁后期收入怎么算
  • 冲减备用金什么意思
  • 减值损失对公司有哪些影响
  • 外购不动产用于办公
  • 无发票入账违反什么规定
  • 房地产开发票的时间?
  • 一般纳税人购进税控设备如何抵扣
  • 未发货先开发票
  • 当月发票未到怎么做账
  • 投资其他公司做什么科目
  • 未分配利润如何计算
  • 技术服务费会计处理
  • mysql多表查询方式
  • windows server 2003 sp3
  • Mac系统中pr插件汉化
  • w8系统文件夹怎么设置密码
  • win10系统如何禁用u盘
  • win7能打lol
  • docker 开源项目
  • android 自定义spinner
  • using kernel
  • 批处理/a
  • jquery mobile
  • unity strangeioc
  • javascript用什么写
  • jquery可以实现哪些效果
  • js函数关键字
  • 记住密码自动登录怎么取消
  • jquerybind事件
  • 保障性住房是否可以买卖
  • 城市建设维护税减免政策
  • 如果我是科学家我会发明什么
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设