Testing the resource consumption for Android. Part 1

Sergei Terekhov

Written by Sergei Terekhov Пятница, 04 Октябрь 2013

In this article we are going to discuss a very interesting topic: resource consumption testing for phones with Android OS. For mobile phones with Android operating system, there are many third-party programs that show the amount of resources used by some phone application. And also there is a special API and SDK that can help you see all the information about the target application on your computer. Here are some of them: 

StrictMode. It is a new API, which allows you to set policies for streams which control the list of operations, which are forbidden to be done in them. Without analysing details it is just a bit mask, which is saved in a thread-loca variable. For more information about StrictMode see the article "Testing resource consumption for Android (StrictMode). Part 2."

Dalvik Debug Monitor Server (DDMS).It is one of the main tools for debugging in Android. It is a part of the ADT plugin development environment Eclipse, it can also be found under tools/ your Android SDK. For more information about DDMS see the article "Testing the resource consumption for Android (DDMS). Part 3." 

Inspite of the large amount of different API and SDK, there are many applications that monitor the application’s works on phones. For example, applications Android OS Monitor, System Monitor, OS Monitor.

These programs include the following information: 

  • The ability to control all the processes.

  • Displaying all connected network connection.

  • Battery monitoring.

  • Monitoring of network processes

  • Monitoring of memory consumption.

  • Messages dmesg LogCat search or real-time.

comments powered by Disqus