简体   繁体   English

Android ADK配件弹出一个空的空白对话框

[英]Android ADK accessory popping up a empty empty dialog box

I'm making an accessory using Sparkfun's electric sheep board. 我正在使用Sparkfun的电动羊板做配件。 Previously, my code worked perfectly fine and I could communicate with the usb accessory. 以前,我的代码工作得非常好,可以与USB附件进行通讯。 Recently though, instead of popping up the message box to give the accessory permission, it pops up a blank message box that takes up the entire screen with no text or buttons. 但是,最近,它弹出一个空白消息框,而不是弹出该消息框以授予附件权限,该消息框占用了整个屏幕,没有文本或按钮。 I recreated my entire eclipse project yesterday with the exact same code and it was working again perfectly. 昨天,我使用完全相同的代码重新创建了整个eclipse项目,并且再次运行正常。 However, today I started working on it only to find out that I'm getting the blank message box again. 但是,今天我开始研究它,只是发现我再次收到空白消息框。

Has anybody experienced this before? 有人经历过吗?

Found the answer immediately after posting it. 发布答案后立即找到答案。 I was using a quick image for the icon and hadn't worried about re-sizing it yet and instead just let the app re-scale it when necessary until I got around to shrinking it. 我使用的是图标的快速图像,并且还没有担心重新调整其大小,而是只是在必要时让应用重新调整它的大小,直到可以缩小它为止。 Turns out, the message/dialog boxes do not scale the icon to the application and was trying to render it. 事实证明,消息/对话框未将图标缩放到应用程序,并试图呈现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM