Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Log messages from real device on Logcat

For my android app development, I am trying to get logcat messages from my real device (when starting an app on it from eclipse) and not just from my emulator.

Does someone know how to enable such a feature?

like image 687
poeschlorn Avatar asked Jun 17 '10 10:06

poeschlorn


2 Answers

You need to enable USB Debugging on your device. Go to settings, applications, development and tick "USB Debugging". Then when your device is connected by USB you can see its name in DDMS as if it was another emulator.

like image 74
James Avatar answered Nov 01 '22 18:11

James


It works like the emulator, use the ddms or eclipse plugin to get the logcat from your app running on devices.

Otherwise you have always the options to use a Log Collector app (download a free one from Market), you can tell your users to use such app if they want to send you the log.

like image 35
Pentium10 Avatar answered Nov 01 '22 18:11

Pentium10