Displaying logcat messages in an app: a simple example