你如何调试你没有自己的手机?自己的、手机

2023-09-05 04:16:27 作者:冷眼看你演

我已经发布了一个应用程序推向市场。它似乎很好地工作在某些设备上,并且具有完全怪异的行为对他人。它运行正常在虚拟机配置为匹配这些设备的安装。

I've released an app to the market. It seems to work fine on some devices, and have completely weird behaviour on others. It runs fine in a VM configured to match the setup of these devices.

虽然在一般的,因为有些手机的行为以意想不到的方式,有没有得到的测试数据为某些设备没有实际购买的任何其他方式?如何应用程序开发解决特定设备上出现的问题?

In general though, given that some phones behave in unexpected ways, is there any other way of getting test data for certain devices without actually buying them? How do app developers fix problems that occur on a specific device?

推荐答案

好了,你可以采取两种方法。第一种方法是,你有一个人工作在调试模式下的应用程序,他们试图重建问题。第二种方法是,你在后台不断地追踪手机业务。

Ok you can take two approaches. The first approach is that you have a person operate your application in debug mode and they try to recreate the issue. The second approach is that you track the phones operations in the background constantly.

第一种方法简单有你在应用程序启动调试模式增加一个选项。它写入系统日志,一个额外的文本文件和电子邮件,当用户将其设置为。你不得不坚持在应用程序崩溃的情况下,此选项。

The first approach simply has you add an option in the application to start the debug mode. It writes the system logs to an additional text file and e-mails when the user sets it to. You'd have to persist this option in the event of the application crashing.

第二种方法将是既写入日志,以一个文件中的每个应用会话期间和清除日志应用程序时被终止。或者只写了一定数量的数据到应用程序中,清除日志,每隔一段时间。

The second approach would be to either write the logs to a file during each application session and to purge the logs when the application is terminated. Or just write a certain amount of data to the application, purge the logs every so often.

您需要或者上载或电子邮件的日志服务器。这是简单的就够了。

You will need to either upload or e-mail the logs to your servers. This is straight forward enough.

要拿到手机型号退房 http://developer.android .COM /参考/安卓/ OS / Build.html#型号