Tracing on Android Touch Devices

Visual LANSA Framework

Tracing on Android Touch Devices

Tracing on Android touch devices is not as straightforward as on iPads because there is no browser inbuilt console.

There are a few tools to remote debug Webkit browsers. Here we are only going to cover the Android Debug Bridge – adb – which lets you output trace statements to a dos command prompt. To use adb you require:

  • A USB connection to a PC or laptop. Check that your device has USB Debugging enabled: Settings – Applications – Development – USB debugging

 

To start using adb:

1.   Connect the device to the computer and open a DOS prompt and change directory to the platform tools.

2.   Type this command and press Enter:

 

3.   Type this command and press Enter:

 

4.   Type this command and press Enter:

 

If no devices are listed it probably means that the proper driver is missing. Otherwise you should see something like this:

 

5.    To start tracing, first clear the log:

 

6.    Next you can issue this command which will filter the browser messages:

 

From here on any trace messages will come out on the DOS window:

For more information about the adb interface see: http://developer.android.com/guide/developing/tools/adb.html.