kiki
kiki

Reputation: 13997

Android: Logging on an android device

I am no good with hardware concepts. So I have this probably very silly doubt.

I want to add Log to my application. When running on an emulator, I know where to see the Log output - it's visible in the Logcat window of Eclipse.

I want to know where I can see these logs when I run it on a hardware device. I am using following command to load my app on to the device : ./adb install helloWorld.apk

So where will the log be created and under what name?

Apologies if the question is vague or silly. I really do not know more details.

-Kiki

Upvotes: 2

Views: 961

Answers (2)

Lie Ryan
Lie Ryan

Reputation: 64923

When you run on device, the log is also available in LogCat. You will need to turn on USB debugging (Settings > Applications > Development > USB Debugging) in your device, then you can use LogCat just like in the emulator, both using ./adb logcat and in Eclipse.

Upvotes: 0

kokosing
kokosing

Reputation: 5601

Try to use:

./adb logcat

Upvotes: 2

Related Questions