简体   繁体   English

如何在Samsung Galaxy S3上测试Android应用程序?

[英]How to test an Android app on Samsung Galaxy S3?

One of the app I am working on works fine on Samsung Galaxy Ace and Samsung Galaxy Y but a user reported that app crashes on installation in Samsung Galaxy S3. 我正在开发的其中一个应用程序在Samsung Galaxy Ace和Samsung Galaxy Y上运行良好,但有用户报告说该应用程序在Samsung Galaxy S3中安装时崩溃。

Now I am wondering how could a app working well one phone crashes on installation on another phone, what could be the reason for such a crash? 现在,我想知道一个应用程序如何在一部手机上正常运行而在另一部手机上安装时崩溃,这可能是导致崩溃的原因?

Also how could I replicate the behavior of Samsung Galaxy S3 even when I don't have one and I don't intent to buy one (given the cost of the phone)? 另外,即使我没有手机并且不打算购买手机(考虑到手机的价格),我该如何复制三星Galaxy S3的行为?

Now I am wondering how could a app working well one phone crashes on installation on another phone, what could be the reason for such a crash? 现在,我想知道一个应用程序如何在一部手机上正常运行而在另一部手机上安装时崩溃,这可能是导致崩溃的原因?

Do you know what is the exception when it crashes? 您知道崩溃时有什么异常吗? There could be so many reasons. 可能有很多原因。

  • Different VM max size 不同的VM最大大小
  • Different screen resolution 屏幕分辨率不同
  • Permissions - are you using specific hardware features/internet/external storage 权限-您是否正在使用特定的硬件功能/互联网/外部存储

It is impossible to tell without knowing the exception. 在不知道异常的情况下是无法分辨的。 If you cannot get the device, you can try to emulate as close to the device as possible. 如果无法获得该设备,则可以尝试在尽可能靠近该设备的位置进行仿真。 Android emulator allows you all these settings - screen resolution, max VM heap size, RAM size, external storage etc. So get the technical specs of that device and set up your emulator accordingly. Android模拟器允许您进行所有这些设置-屏幕分辨率,最大VM堆大小,RAM大小,外部存储空间等。因此,请获取该设备的技术规格并相应地设置模拟器。 Then try to reproduce the problem 然后尝试重现问题

As mentioned by AppMobiGurmeet in his comment, you can start by creating an Android emulator with the same characteristics as the Galaxy S3. 正如AppMobiGurmeet在他的评论中提到的那样,您可以从创建具有与Galaxy S3相同特征的Android模拟器开始。

This can be enough to solve simple bugs, but there is really nothing like testing on the real device. 这足以解决简单的错误,但实际上没有什么比在真实设备上进行测试更好的了。 As it is impossible for you to test on this phone, I would advise you to implement some crash reporting system in your app, using ACRA for example (a really great library for debugging). 由于您无法在此手机上进行测试,因此建议您在应用中实施一些崩溃报告系统,例如使用ACRA (一个非常好的调试库)。 This way yuo will see the stack of the crash (which is enough in most cases to understand what is going wrong) 这样,您将看到崩溃的堆栈(在大多数情况下,这足以了解问题所在)

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

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