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
8
votes
2 answers

Using LogCat on JellyBean

I have a bug that happens very randomly, so I rely on a LogCat monitoring app I bought off the Play Store, to see the exceptions thrown on my device when it happens. Since using Jelly Bean, I'm seeing no logging. I've read that, with Jelly Bean,…
Kris B
  • 3,436
  • 9
  • 64
  • 106
8
votes
1 answer

How long are LogCat entries kept in memory?

After what time are LogCat logs erased from phone's memory?
alex
  • 10,900
  • 15
  • 70
  • 100
8
votes
5 answers

Android: Logcat is not working for JS console.log()

My app is a combination of Android native, html5. Till last week I'm able to see the log messages from native code and javascript code running inside th WebView. But suddenly Logcat is not showing the console messages from javascript, though it is…
Venkat Papana
  • 4,757
  • 13
  • 52
  • 74
8
votes
1 answer

What is the meaning of pid, uid and gids in Logcat Message?

I get the following message in Android Logcat I/ActivityManager(59): Start proc com.abc.xyz:mnp for service com.abc.xyz/.contact.SomeService: pid=31198 uid=10036 gids={3003, 1015}. What are the meanings of pid, uid and gids and numbers in front of…
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
8
votes
5 answers

Creating tables in sqlite database on android

@Override public void onCreate(SQLiteDatabase db) { try{ db.execSQL("create table " + NotificationManager.getUserStatic(context) + "log ("+ KEY_TIME +" INTEGER primary key, "+…
Slayonie
  • 83
  • 1
  • 1
  • 3
7
votes
1 answer

Filter log messages by PID or application package in Android

I understand that to filter Android log messages we can use something like adb logcat ActivityManager:I MyApp:D *:S But, in my application, I'm using different TAGS for different activities and I want to filter all the logs of this application…
Atul Goyal
  • 3,511
  • 5
  • 39
  • 59
7
votes
3 answers

Whats the error in my logcat?

I am almost finished with my game now, but today I encountered a real anoying problem. When I start the game and just wait for a few secounds, the program automaticly shuts down. And I ahve no explonation fot it. This is what my logcat shows: 01-22…
SlowDeepCoder
  • 864
  • 3
  • 11
  • 27
7
votes
5 answers

How to sync Kernel time and logcat time?

I am working on an Android phone based on the Linux Kernel. I'm using kmsg for kernel logs and adb logcat -v time for platform logs. The problem is Kernel logs shows time from 0.000000 and logcat is showing from the start of system time ( For…
Pavan Manjunath
  • 27,404
  • 12
  • 99
  • 125
7
votes
2 answers

Is there an easy way to "deactivate logging" prior to releasing your app on the market?

I'm preparing to release an app on the market place, on reading the Google documentation located here it suggests the following : Deactivate any calls to Log methods in the source code. Is there an easier way than having to go through all my source…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
7
votes
4 answers

How do I open the android emulator's terminal window?

In order to enable logging for medailytics plug in, I need to enter this into the emulator's terminal adb shell setprop log.tag.MMT DEBUG Unfortunatly I don't have a clue how to open the terminal and the developer resource didn't seem to mention…
Jack
  • 2,625
  • 5
  • 33
  • 56
7
votes
4 answers

Android Logging Strings with newline character or

It seems that if you call String text = "String
String"; Log.d(TAG, text); it automatically parses the String to take two lines. The same goes for new line (\n) characters. That makes debugging more complicated. Is there a way to tell the…
Christian
  • 25,249
  • 40
  • 134
  • 225
7
votes
2 answers

How to print log of library project in android?

I have one android project in which I have included 3 other android library project and I am using eclipse. I have tried to print log from the library project, but it only prints the log of the main project only. So can any body tell me how to print…
Jayeshkumar Sojitra
  • 2,501
  • 4
  • 31
  • 44
7
votes
2 answers

whats the significance of /dev/log/main and /dev/log/system in android logcat?

I usually get these two lines when i type adb lolcat in command line --------- beginning of /dev/log/main D/dalvikvm( 2586): GC_CONCURRENT freed 651K, 7% free 12236K/13063K, paused 7ms+4ms D/dalvikvm( 2586): GREF has increased to…
Charan Pai
  • 2,288
  • 5
  • 32
  • 44
7
votes
1 answer

The view is not attached to a window

What does the warning The view is not attached to a window mean? I am constantly getting it in Logcat, while trying to debug my game. The exact output: 12-27 18:14:12.415: W/View(16827): The view is not attached to a window I've searched for this…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
6
votes
3 answers

Interpret Logcat entry: threadid=8: still suspended after undo (sc=1 dc=1 s=Y)

I am running around ten AsyncTasks after my application starts. Sometimes the emulator takes a long time to start these tasks. When this occurs, I see the following message in the log cat: D/dalvikvm(1983): threadid=8: still suspended after undo…
Diego Frehner
  • 2,396
  • 1
  • 28
  • 35