位置: 编程技术 - 正文

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已申报税额为0,可以退税吗
  • 购买固定资产的进项税可以抵扣吗
  • 进口增值税的计税价格为
  • 补贴收入是否交个税
  • 培训费计入办公会计科目吗?
  • 电子发票开票方怎么做账
  • 计提贷款利息是什么意思
  • 弃置费用调整
  • 应计提的存货跌价准备
  • 小型企业缴纳企业所得税
  • 退款扣除的手续费怎么查
  • 经纪人佣金计入什么科目
  • 房地产预缴增值税是含税还是不含税
  • 一张报关单可以分批退税吗
  • 销售商品会计凭证
  • 免租要怎么交税
  • 印花税按主营业务成本计算吗
  • 投资收益年底结转怎么算
  • 在会计实务中财务报表附注的披露方法不包括
  • 关于燃油消费税征收范围及税率
  • 研发支出费用如何计算应交所得税?
  • 公司之间过户车辆要交税吗
  • 亏损企业季度盈利企业所得税怎么预缴?
  • 管理费用没发票能入账吗
  • 少数股东持股比例
  • 虚增利润
  • 事业单位收到租金收入
  • 前端获取当前地址
  • 苹果推送改不掉三全音
  • php写json
  • 国税的个税手续怎么办理
  • 完美解决win11间歇性掉线
  • 华为路由器怎么设置wifi密码
  • wordpress使用
  • 数字孪生demo
  • 怎样把htm文件转成excel
  • 三趾鹑是野鸡吗
  • 筹建期间借款费用
  • php数组排列组合
  • 发票密码什么意思
  • 损益类账户怎么做会计分录
  • 电赛例题
  • vue-element
  • 网易游戏二面
  • 返还教育费附加、地方教育费附加代征手续费的请示
  • 报表里主营业务怎么填
  • 同控下的企业合并分录
  • 现金销售收入是什么意思
  • 小额支出没有发票怎么办
  • PostgreSQL教程(十四):数据库维护
  • mysql的long类型
  • 非预算类专用账户
  • 如何将港币兑换成人民币
  • 进项已抵扣,退货发票怎么处理
  • 收到党支部经费如何做账
  • 网络使用费属于办公费吗为什么
  • 小企业会计准则2023电子版
  • 其他应付款是什么科目代码
  • 吊装费是属于什么报销项目
  • 装修设计费多少合理
  • 支付宝里的收入和支出明细能查多久的?
  • 失控发票进项税转出企业无法承担所得税怎么办
  • 财务费用怎么计入现金流量表
  • mysql优化技巧实战
  • navicat 导入
  • 设置共享时可使用的权限
  • solaris安装教程
  • win7手动装系统步骤
  • xp系统的设置在哪里
  • 激素六项雌二醇30
  • nodejs如何运行html
  • python winreg
  • eclipse怎么查看项目的位置
  • JavaScript+html5 canvas实现本地截图教程
  • unity3d导出工程文件
  • js设计模型
  • 浅谈插入排序算法在Python程序中的实现及简单改进
  • 宁波税务总局官网
  • 企业注销结果查询
  • 国税新规
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设