Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm quite new to Android development. I spent a few weeks, doing tutorials and developping simple apps.

Now, I'm focusing on all the test aspects. I have done Junit tests before so I thought it would be OK but now I'm slightly worried about the test coverage required.

First, how to test with hardware with that many different devices?? I though I would just buy one but now I'm not so sure.

There are so many handsets and they are so different! hardware feature missing, different resolutions, different lib version, etc

Have you guys got statistics about which handset sell the best per country? So that we can just buy the 2,3 most representative phones? Is there any developer deals where you buy 3 phones + 1 contract for a reasonable price (I'm in the UK btw).

Also, to go back to emulator tests, is there a way to kind of convert a famous handset into the corresponding AVD? Is there some nice free test infrastructure available that make multi-AVDs, multi-config, multi-projects test easier? Now I know most of the programs such as adb,android,emulator, etc... Still will probably need to write some python scripts which integrate them all..

Anyway, I'm slightly puzzled here so any pointer, any comment about your own android test strategy would be much appreciated!

Thanks in advance

Mikael

share|improve this question
add comment

closed as too broad by gnat, Kilian Foth, GlenH7, Bart van Ingen Schenau, Michael Kohne Mar 3 at 14:31

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 2 down vote accepted

Here's a good blog-post on creating AVDs which mimic some popular devices (at the time!). Unfortunately you still have to do these by hand :-( Maybe if you dig up some more recent models you can use this blog-post to create some up-to-date AVDs

v2.2 is still the most popular (see here) and if you target v2.1 you should have covered more than 90% of what's installed out there. In my view, if you test on 1 or 2 real devices and a couple more AVDs you're good-to-go to deploy it on the Android Market. If your app crashes you (can) get a crash report from the user, which will give you more insight on a per device installation in the real world.

Good luck!

Johan

share|improve this answer
    
2 great links, cheers! –  MikaelW Apr 29 '11 at 13:41
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.