Questions tagged [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 Eclipse with Android Development Tools (ADT) plug-in provides a logcat view in most perspectives, automatically retrieving logging information.

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

2313 questions
1
vote
0 answers

Finding source of logcat message: surface (identity=xxxxx) is invalid, err=-19 (no such device)

"surface (identity=xxxxx) is invalid, err=-19 (no such device)", where xxxxx is a numeric ID, of course. This is a logcat ERROR entry which I get in 3 (three) instance at the same time, but the game I develop works fine. I'm just worried because…
Thomas Calc
  • 2,994
  • 3
  • 30
  • 56
1
vote
1 answer

I need help to use the android cam and to understand the logcat

I am having problems to understand the logcat of my application that crushes. (I am a beginner and my app just takes a picture and then saves it in a specific folder, but when I hit the button that should allow me to take a picture, it crashes and I…
Sdig Sadok
  • 11
  • 5
1
vote
1 answer

Android Eclipse Logcat messages: How does ADT get the Application column?

I ran Logcat on a command window and tried all possible formats: brief — Display priority/tag and PID of the process issuing the message (the default format). process — Display PID only. tag — Display the priority/tag only. raw — Display the raw log…
ilomambo
  • 8,290
  • 12
  • 57
  • 106
1
vote
2 answers

Why are my Android logcat logs being lost on device boot up?

I'm trying to troubleshoot an issue on a users phone with my app. Essentially the widgets are failing to update on start-up of the device. This user is now sending me log files (captured via the excellent CatLog). However on boot up I am only…
Chris Knight
  • 24,333
  • 24
  • 88
  • 134
1
vote
1 answer

debugging logcat stack trace - no routine information

I'm brand new to debugging logcat, so bear with me. My Android app SIGSEGVs on a shared library. Logcat tells me this: 04-24 05:36:53.781: D/dalvikvm(1945): threadid=1: still suspended after undo (sc=1 dc=1) 04-24 05:37:00.066: A/libc(1945): Fatal…
eskimo9
  • 753
  • 10
  • 24
1
vote
2 answers

A lot of error messages in logcat about proximity sensor

My application uses proximity sensor with following code: public class WakeLockHelper { static final String WAKE_LOCK_STR = "My.WakeLockHelper"; static final int PROXIMITY_SCREEN_OFF_WAKE_LOCK = 32; private static WakeLock mScreenLock =…
Andrey Starodubtsev
  • 5,139
  • 3
  • 32
  • 46
1
vote
1 answer

Eclipse opens wrong source file on exception

I have several Android projects in an Eclipse workspace: a stand-alone application project with a class my.package.Foo a library project with a different class my.package.Foo two application projects that depend on the library project and contain…
Ted Hopp
  • 232,168
  • 48
  • 399
  • 521
1
vote
3 answers

Android Logcat files on Hudson/Jenkins

we are using Hudson for CI of an Android project with Android emulator plugin to run UI tests on the emulator. A git project delivers the source code. Now I see that in the git repo, for each build a logcat file is created and put in the git project…
Micky
  • 5,578
  • 7
  • 31
  • 55
0
votes
1 answer

Android: Receive wrong values from DDMS

I want to receive a float value from DDMS but it sends an integer Example: longitude:2.351696 latitude:48.857593 But i receive: longitude:2.0 latitude:48.0 How can I make this work? Here is my code: LocationManager lm = (LocationManager)…
Wassim
  • 13
  • 5
0
votes
1 answer

Flooded by status messages in logcat (eclipse/android)

I sometimes get flooded by this strange message in logact: "W/Settings(386): Setting location_providers_allowed has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value." The Problem is that…
HardCoder
  • 3,026
  • 6
  • 32
  • 52
0
votes
1 answer

Filter android logcat ouput for multiple tags

I want to capture logs and dump them into a text file, I am using a perl script to do this. The issue I am running into is that I want to include only certain tags in my logcat command. I am using $adbcommand_logcat = "start \"Android-Logcat\"…
Akhil Latta
  • 1,603
  • 1
  • 22
  • 37
0
votes
1 answer

In a GUI-based Android app, how can I find the particular button press which launched an intent?

I have access to the full logcat/DDMS output of an app in operation, as well as the source code. If I see something like (taken from OpenSudoku) 03-11 20:38:28.110: I/ActivityManager(175): Starting: Intent {…
Rowhawn
  • 1,409
  • 1
  • 16
  • 25
0
votes
2 answers

When i press on button app force closes? Android

When i run my app, and i press on a button it force closes. I fixed my Android manifest and i cannot find the problem. Here is the Logcat: 03-09 17:46:17.301: D/dalvikvm(2133): Debugger has detached; object registry had 1 entries 03-09…
user1248404
  • 59
  • 1
  • 8
0
votes
1 answer

Random crash while navigating

I've setup my activity to have a listview-> Listview-> listview-> table layout -> etc. When navigating the application apps to work great. But it's only a matter of time till the program randomly crashes. 03-06 21:12:29.350: W/dalvikvm(7132):…
maebe
  • 553
  • 1
  • 6
  • 18
0
votes
1 answer

Android App Bluetooth Logcat NullPointerException

I am getting NullPointerException error on LogCat messages, and I'm having trouble finding the issue. According to the LogCat messages, the problem started from the line 93, which: // Get a set of currently paired devices Set