Viewing logs on Android devices


On my previous post I mentioned how to generate a log entry from your Delphi app on Android devices:


LMarshaller: TMarshaller;

LOGI(TMarshaller.AsAnsi(‘Hello World’).ToPointer)

But how do you actually get hold of Android’s log output?
You can view the log stream on a console by entering this command:
adb.exe logcat
adb.exe is part of the Android SDK and usually comes with Delphi XE5:
C:\Users\Public\Documents\RAD Studio\12.0\PlatformSDKs\adt-bundle-windows-x86-20130522\sdk\platform-tools\adb.exe
A console log might look a bit messy though (at least to me), so you might try this free tool, which even lets you filter the log stream:
Android LogViewer

Tweet This!

Share this on

Digg this!

Share this on Reddit

Get Shareaholic

Comments are closed.