• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to get logcat dump of the device..

 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic