Noah Seidman
Noah Seidman

Reputation: 4409

Android: Device Compatibility

I program and test using the Droid Incredible. The other day my friend downloaded my alpha version, which works flawlessy on the Incredible, but crashed on his Moto Droid. I just updated my app to use 2.1 api's instead of 1.6; maybe this will make a difference?

I upped my min version requirements to 7.

My question is how can you make sure your app works on all phones and not just the phone your are building and testing on?

Is there a way to emulate a particular device?

Upvotes: 2

Views: 458

Answers (3)

bta
bta

Reputation: 45057

Sadly, even an emulator isn't going to catch 100% of these types of problems. The only sure-fire way to ensure the app works on a particular device is to test it on that device. You are going about it the right way by having a friend test your app on his device (asking friends and family to help test is usually an easy way to expand your test matrix).

I would recommend having some way for users to provide feedback other than the standard Android market feedback mechanism (such as a web forum or a "questions and comments" email address). Even though you will likely get many frustrated or angry messages, you will also find that there are a lot of friendly Android users out there who will be happy to help you out by sending you details about a crash or possibly even testing a special debug version of your app. I have seen some apps that have an option to enable debug logging in the application menus; anyone that wants to help can simply check the box, restart the app, and once it crashes, email the log file to the developer (of course, you'd want to include instructions about how to do this). This won't help with startup-related crashes, but you can have a separate file for logging app startup information (and have it always enabled).

Upvotes: 2

Yoni Samlan
Yoni Samlan

Reputation: 38075

Short of buying the devices, or the manufacturers releasing proper emulator-friendly AVDs of all their devices complete with proprietary "enhancements" (SenseUI, etc.) solutions like DeviceAnywhere are the only complete answer short of buying a few phones or coercing customers into sending you tracebacks with LogCollector, at least until more devices support Android 2.2 error reporting.

Motodev Studio includes some images for specific phones for emulation for Motodev Studio; that's worth checking out if you have a Droid/Milestone-specific crash. But that's still just emulation; some issues (e.g. with specific input from trackballs or keyboards) may only show up when you're testing on a real-world device, so keep that in mind.

Upvotes: 2

zed_0xff
zed_0xff

Reputation: 33227

Test on emulator. On 1.5, 2.1 & 2.2 android OS versions.

Upvotes: 0

Related Questions