Game Development Reference
In-Depth Information
A change in configuration also triggers the default behavior of destroying and then restart-
ing the foreground activity. Test how your app maintains its state and responds correctly to
the new configuration.
• Dependence on External Resources
If your app depends on network access, such as Bluetooth, Wi-Fi, or GPS, then you should
test what happens when these resources are not available. For instance, if your app uses the
network, it can notify the user the current access is unavailable, or just disable network-re-
lated features.
The AVD emulator is only applicable to functional tests. Usually it doesn't have decent
performance and it may not be able to discover device specific bugs in most cases. So it's
very important to test your apps on different real devices before launching them into the
market.
Testing on Android Phones
Besides testing changes in orientation, changes in configuration, and dependence on ex-
ternal resources, you may need to test one more situation on your Android phones.
 Battery Performance
Each device has its own finite battery life, and when it is gone, the device is useless until it
is recharged. So it's very important to test the battery performance that your app may influ-
ence, and test the methods that manage the battery usage. To reduce the battery usage, you
should write the appropriate unit tests to optimize your app.
Here is a game screenshot from Android phones (figure 7.6).
Search WWH ::




Custom Search