• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps logcat from device

Moved to Dev 101.

To answer your question.

The /dev/ directory is not externally accessible unless the device is rooted. With that said, you shouldn't be trying to access the log cat output this way anyway. If you put your device into USB Debugging mode and connect your device to the computer, then you can run the DDMS application that ships with the Android SDK on your computer to read the log cat output as well as gather other potentially useful data.
 
Hi jonbonazza! thank you very much for reply.

I am very sorry but I am a newbie in android. I am using Eclipse under Ubuntu.

I have put my device into USB Debugging mode and connected to the computer.

On the "onCreate" method in the main activity I have this:

Code:
Log.d("MyActivity", "this is a sample log");
And on the logcat tab this message is shown:

Code:
 Unable to open log device '/dev/log/main': No such file or directory
What am I doing wrong?
Thank you very much!
 
So after reading that link, Am I suppose to root my phone?? Because I do not know how to root my phone!

Thank you very much!
 
Ok, so that link I posted doesn't require a rooted device. If you dial the number that it mentions, it should walk you through setting up logging.
 
Back
Top Bottom