Android Application Development – Few Basic Still Most Important Things to Test

Text-only Preview

Android Application Development - Few Basic
Still Most Important Things to Test
Testing though is the last step of an Android application development cycle, is the most
important part of the whole process. It is only through testing that an Android developer
can judge the quality of the application developed. And it is only at this stage that
developers can know if the application they have developed is functioning as required or
not, if not then they have the chance to rectify the error before the application is delivered
to clients.
Android application testing is huge and includes lot many things, however it is as important
to know what to test as to know the process of testing for Android app development.
Here we have made an attempt to highlight the behaviors or situations to test even at the
unit test level.
Change in Device Orientation
Android enabled devices available now-a-days
have the ability to detect changes in the
orientation data and use the data to
automatically rotate the display of images and
applications either in "landscape" or "portrait"
view. Android app development when done needs
to be able to adjust to Android device's
orientation. Hence you need to check if the
screen is re-drawn correctly; custom UI code can
adjust to orientation changes; how well the
application maintains its state; UI information
should not be lost and application placing in the
current transaction for device orientation.

Change in Configuration
When the default configuration of an Android device changes it results in the destruction of
the default behavior of the application and restarting of the foreground activity. This might
be affected even in case of simple changes in device configuration like change in system
language or change in keyboard availability. It is thus important to check that the
application is still able to maintain its UI and transaction state, even when device
configuration changes. It is also crucial to check that the application automatically updates
itself to be able to correctly respond to the changed configuration.
Battery Life
Why are mobile devices mobile? Simply because they use battery power, which makes them
independent of relying on switch boards to be able to function. They are of no use, if there
battery goes off. Hence Android app development should be done to develop application
which will consume minimum battery or else users might be reluctant to use it.
Reliance on External Resources
Mobile accessories and its features enhance mobile device's utility, Android application
development is often done considering these external resources. Obviously the application
will work all well when all the external resources needed for its smooth functioning are
available. But that is not all, it is important to check how the application behaves in the
absence of any of the resources needed for its functioning. For example if your application
relies on network availability then it should be able to notify the user in case if network is
not available.