Test your application extensively on an actual device

It's important to test your application as extensively as possible, in as many areas as possible. To help you do that, Android provides a variety of testing classes and tools. You can useInstrumentation to run JUnit and other test cases, and you can use testing tools such as the UI/Application Exerciser Monkey.

• To ensure that your application will run properly for users, you should make every effort to obtain one or more physical mobile device(s) of the type on which you expect the application to run. You should then test your application on the actual device, under realistic network conditions. Testing your application on a physical device is very important, because it enables you to verify that your user interface elements are sized correctly (especially for touch-screen UI) and that your application's performance and battery efficiency are acceptable.

• If you can not obtain a mobile device of the type you are targeting for your application, you can use emulator options such as -dpi, -device, - scale, -netspeed, -netdelay, -cpu-delay and others to model the emulator's screen, network performance, and other attributes to match the target device to the greatest extent possible. You can then test your application's UI and performance. However, we strongly recommend that you test your application on an actual target device before publishing it.

• If you are targeting the T-Mobile G1 device for your application, make sure that your UI handles screen orientation changes.

0 0

Post a comment