Other important tools

We will cover some other tools you will need in everyday Android development.

Let's start with the following:

Next important tool is as follows:

When you have problems with application glitches, Systrace tool comes as a powerful ally!

It does not work with Android SDK Tools less than 20! To use it, you must have Python installed and configured.

Let's try it!

To access it from UI, open Android Device Monitor in Android Studio and then choose Monitor:

Sometimes, it can be easier to access it from the terminal (command line):

The Systrace tool has different command-line options, depending on the Android version running on your device.

Let's take a look at some examples:

General usage:

$ python systrace.py [options] [category1] [category2] ... [categoryN]
        $ python systrace.py --time=15 -o my_trace_001.html 
sched gfx view wm
        $ python systrace.py --set-tags gfx,view,wm
        $ adb shell stop
        $ adb shell start
        $ python systrace.py --disk --time=15 -o my_trace_001.html

The last important tool we want to present is sdkmanager. It allows you to view, install, update, and uninstall packages for the Android SDK. It is located in android_sdk/tools/bin/.

Let's take a look at some common examples of use:

Listing installed and available packages:

sdkmanager --list [options]
        sdkmanager packages [options]

You can send packages you got from --list command.

        sdkmanager --uninstall packages [options]
        sdkmanager --update [options]

There are also some other tools you can use in Android, but we only showed the most important ones.