简体   繁体   English

在特定设备上打开导航抽屉期间,应用程序随机关闭

[英]App Randomly Closes during Navigation Drawer Open on specific device

During Navigation Drawer slide in and out the app randomly closes on the specific device (Sony Z - model C6606 (KitKat)) but on others doesn't seem to happen. 在导航抽屉中滑入和滑出过程中,该应用程序会在特定设备(Sony Z-型号C6606(KitKat))上随机关闭,但在其他设备上似乎没有发生。

Could you suggest some troubleshooting ideas for this issue? 您是否可以针对此问题提出一些故障排除想法? The device is with a client and cannot be hooked up to ADB. 该设备与客户端一起使用,无法连接到ADB。 Ideally I would like to be able to pinpoint the issue whether it's with the device or my application. 理想情况下,我希望能够查明问题所在,无论是设备还是应用程序。 Thank you. 谢谢。

If you're getting a crash on a device that you can't access to hook up to ADB, you may want to look into a way to receive reports on crashes. 如果您在无法访问ADB的设备上发生崩溃,则可能需要研究一种接收崩溃报告的方法。 I recommend Crashlytics -- it can e-mail you alerts when your app crashes along with a stacktrace that you can use to pinpoint where it's going wrong. 我建议使用Crashlytics-它可以通过电子邮件向您发送警报,通知您的应用程序崩溃以及可以用来查明问题出在哪里的堆栈跟踪

可以尝试安装uncaughtExceptionHandler: http ://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#setUncaughtExceptionHandler( java.lang.Thread.UncaughtExceptionHandler)

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

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