位置: 编程技术 - 正文

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

  • 增值税申报可以作废几次
  • 增值税留存比例50
  • 房屋出租何时缴税
  • 税务系统纳税申报
  • 什么叫做供应链公司
  • 什么情况下一般纳税人可以简易征收
  • 合伙企业投入资金是否缴纳印花税
  • 销售免税产品是什么意思
  • 增值税免税是否计入营业外收入
  • 公司卖车怎么开公司发票
  • 代开专用发票的企业如何享受小微免税优惠
  • 暂时性差异乘以税率
  • 打官司败诉承担的费用
  • 专票怎么提交不上去
  • 运输发票上的印章怎么弄
  • 关于非上市公司的法律
  • 个人提前退休取得的一次性补贴收入免征
  • 加盟费返款怎么入账
  • 长期应付款账面价值和账面余额
  • 公司车辆怎么处理
  • 个人所得税的速算扣除数是什么意思
  • 现金折扣税务会计
  • 进项税额异常补税怎么算
  • 期望值E(X)怎么算例题
  • 个人开发票给公司需要提交哪些资料
  • 无形资产研发支出适用于税前加计扣除的政策
  • 帮老板支付的代款怎么做
  • 留存利润和利润的关系
  • 手机cpu性能排行榜2023最新天梯图
  • windows modules installer worker怎么禁用
  • 总公司欠分公司钱不偿还了怎么做账
  • 增值税的计税依据包括契税吗
  • 怎么修改?
  • 增值税专用发票上注明的价款含税吗
  • 暂估纳税调增了账务怎么处理
  • vue2 vue-router 不显示页面问题
  • php获取数据库中的数据,输出到div中
  • 餐饮类的增值税
  • php ucwords() 函数将字符串中每个单词的首字符转换为大写(实现代码)
  • css calculate
  • 个体户发票没有开户行和账号行吗
  • 不接受商业承兑会怎么样
  • 金蝶迷你版怎么打印明细账
  • 法人怎么从公账上大量取钱
  • 小规模纳税人的条件
  • 以公司名义买500万的车省多少税
  • 月末结存材料的实际成本例题
  • 技术服务费计入成本会计分录
  • 差旅费属于什么支出类型
  • 以前年度损益调整是什么意思
  • 代扣税是啥
  • 老板怎么从公户拿钱
  • 商场预付卡
  • 解除合同补偿金需要缴纳个税吗
  • 什么是大病医疗救助
  • 给员工的奖励怎么做会计分录
  • sql语句查询有多少条数据
  • ubuntu系统无法安装中文
  • wrapper.exe是什么
  • Win7系统打开蓝牙
  • win8/10功能
  • win10下安装office2007
  • win8.1新建桌面
  • fedora update-grub
  • 在linux操作系统中
  • unity跨脚本调用函数
  • 奇门遁甲实例详解
  • js去除特殊字符
  • xml文件示例
  • python生成随机
  • 去掉字符串中的某个值
  • python3正则
  • unity yield
  • angularjs教程
  • shell脚本语句
  • 如何使用jquery设置一个属性值
  • Python中的多行注释文档编写风格汇总
  • 1.6排量算大吗
  • 投资性房地产如何进行后续计量
  • 税务协查工作亮点
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设