Questions tagged [android-logcat]

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logging information from Logcat is vital for diagnosing problems and debugging Android apps.

To retrieve information from logcat manually the Android Debug Bridge (ADB) command line tool is used. Alternatively the Eclipse IDE provides a logcat view in its Android DDMS perspective, that automatically retrieves logging information

Detailed information on the logcat command is available at the Android Developers API.

For non-developer questions, see the Android Enthusiasts StackExchange.

1085 questions
46
votes
6 answers

Time displayed in Logcat

I need to get the Android device timestamp in the format hh:mm:ss:SS. I am able to view the time displayed in the Logcat of Eclipse. Is it the computer's time or is it the Android device's time?
user1741274
  • 759
  • 3
  • 13
  • 25
44
votes
9 answers

How can I stop the LogCat output from scrolling automatically in Eclipse?

UPDATE: This turned out to be a bug in R14 of the SDK tools. It has been fixed in R15 which was released on Oct/27/2013. Updating to the latest release solves the problem as suggested in the accepted answer. I use the LogCat window in the Debug…
howettl
  • 12,419
  • 13
  • 56
  • 91
43
votes
3 answers

How to filter multiple words in Android Studio logcat

I want to see just a couple of words in logcat. In other words, just a given tags. I tried to enable Regex and type [Encoder|Decoder] as filter, but it doesn't work.
Pitel
  • 5,334
  • 7
  • 45
  • 72
43
votes
6 answers

print array in the log cat android

How can I print the arr variable in the log to see the results of the array thanks, public void onClick(View v) { if(v.getId()==R.id.buttonone) { genrandom grandom =new genrandom(); int[] arr=new int[50]; arr…
user1760556
  • 489
  • 1
  • 4
  • 4
39
votes
3 answers

Turn off Firebase logcat logging

Now that I have integrated Firebase, I don't want to see logcat spam like this D/FirebaseCrashApiImpl: FirebaseCrash reporting API initialized I/FirebaseCrash: FirebaseCrash reporting initialized…
Austyn Mahoney
  • 11,398
  • 8
  • 64
  • 85
37
votes
16 answers

adb logcat hangs with "waiting for device" message

When I type adb devices command on terminal, it shows device is connected List of devices attached 0123456789ABCDEF device But when I type adb logcat command, it hangs with below message waiting for device Can anybody…
Android Boy
  • 4,335
  • 6
  • 30
  • 58
36
votes
2 answers

Automatically clearing LogCat on each Eclipse Debug/Run?

I expected this to be a simple task, but I'm surprised to find no answers for this. Let me clarify: I do not want to call adb logcat -c manually. In fact, I'm not even using the command line to view LogCat, so I don't think this is possible (edit:…
Jason
  • 6,878
  • 5
  • 41
  • 55
36
votes
3 answers

How can I automatically clear logcat output before each run in Android Studio?

I'm using Android Studio 1.0.2 and can't find the way to clear logcat output before each Run/Debug. Is there any Gradle task (similar to adb logcat -c) that I can create a Run/Debug configuration for in order to clear output? Or is there simpler…
Adam
  • 842
  • 2
  • 14
  • 22
36
votes
10 answers

Logcat cannot detect app or package names

I'm using Android Studio (Beta) 0.8.7 and my logcat has been working fine for months. All of a sudden my logcat is unable to detect any app or package names. This means I cannot filter the messages for the particular app I'm testing which is very…
pauloz1890
  • 780
  • 1
  • 10
  • 22
34
votes
5 answers

How to print stacktrace for an exception Android

I want to print the stack trace because at the moment I have this running. } catch (IOException e) { throw new Error("Copying Failed"); } And I have been told to print e.stacktrace(); How do I do this?
Somk
  • 11,869
  • 32
  • 97
  • 143
32
votes
7 answers

Android studio maximum number of lines logcat

I'm testing with a real device connected to Android Studio. Because of multithreading behavior that I don't want to interrupt I've added lots of log statements to my code to find out what's happening. In logcat I see the statements comming, so far…
Aster
  • 809
  • 2
  • 8
  • 13
29
votes
5 answers

How to disable the autoscroll feature in Logcat?

I use LogCat to look at the debug output of my apps. If other apps are running or the system has of the test device has some noisy background threads running LogCat will scroll all the time and I have to correct my position manually to read long…
Janusz
  • 187,060
  • 113
  • 301
  • 369
28
votes
6 answers

Javascript console.log() on HTC Android devices and adb logcat

I am developing the application in HTML which is calling the console.log() from Javascript to provide me logs during the development about what happens in the web page code. Unfortunately when I use the adb logcat command to check logs I can see…
STeN
  • 6,262
  • 22
  • 80
  • 125
27
votes
3 answers

adb logcat -f log.txt error: couldn't open output file: Read-only file system

On windows (win7), debugging a real phone via USB I want to dump the logcat log into a file on my PC. The rate of data is beyond what is usable in eclipse; and I want the whole unfiltered log. According to the logcat command line instructions this…
Cheeseminer
  • 2,948
  • 1
  • 20
  • 36
25
votes
6 answers

INSTALL_FAILED_DEXOPT error when trying to install application

I have a similar problem to the ones listed here and here. I am getting an INSTALL_FAILED_DEXOPT error every time I try to install my app on my Motorola Xoom. Here is the error message from the console: [2011-08-02 09:34:43 - Blade] Installation…
theisenp
  • 8,639
  • 5
  • 39
  • 47
1
2
3
72 73