File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to get logcat dump of the device.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to get logcat dump of the device.." Watch "How to get logcat dump of the device.." New topic
Author

How to get logcat dump of the device..

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

When I connect the device to the USB port and type:

adb -d logcat I get,

- Waiting for device –
Error: more than once device and emulator
and the prompt hangs.

Is there any thing wrong with the command?

Thanks.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
You have both an emulator running and the device plugged in. Your choices are:

-- Turn off the emulator

-- Pass the -s switch to adb to tell it which device to use

Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Mark L. Murphy wrote:You have both an emulator running and the device plugged in. Your choices are:

-- Turn off the emulator

-- Pass the -s switch to adb to tell it which device to use


Thanks for your reply ..

I chose adb -d switch for the same reason. The help on it reads:
-d - directs command to the only connected USB device.Returns an error if more than one USB device is present.
-e - directs command to the only running emulator. Returns an error if more than one emulator is running.

Did I interpret it incorrectly?

Thanks.
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
I actually had not noticed the -d and -e switches. Given the error message you are receiving, I suspect they are not working properly.

To be honest, I usually turn off the emulator when I start using the device, so I have not used any of those switches much.
Adrian Vintu
Greenhorn

Joined: Nov 25, 2009
Posts: 1
Here is a tool to enhance your logcat experience
Windows link http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx
Linux link http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/

BR,

Adrian Vintu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get logcat dump of the device..
 
Similar Threads
Can't write to file
Creating Database and Tables
Runtime error when accessing Location data
Problem Trying To Access URL
how to transfer images to ftp server in android