Android: Reading Logs and Exceptions

Posted May 24th @ 11:21 pm by Boyan

While developing my Android apps I routinely, regularly, almost every time, without a miss, get some kind of exception. And the error you see on screen is not developer friendly, though it is very end-user friendly:

01 error

WTF? Why? What did I do wrong this time, again?

You can find the answer very easily:

1. Open a command prompt window.

2. Go to the SDK_directory\tools\

3. Run “abd logcat”

This will show you all logs that the Android system produces as you click around. Some of the logs will be related to the Exceptions getting thrown because of your app.

02 screen

Null Pointer! But… you still need to decipher where this Null Pointer is from.

Advertisement


-->

1 Comments

  1. will
    July 5, 2010 at 16:47

    Thank you!

Leave a comment

Standard Login

Options:

Colors