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

Displaying array values in the logcat

I have the following array final byte[] texttoprint = new byte[]{0x1b, 0x40, 0x1b,0x74,0x0D, (byte) 0x91,(byte) 0x92,(byte) 0x93,(byte) 0x94,(byte) 0x95, (byte) 0x96,(byte) 0x97,(byte) 0x98,(byte) 0x99, …
kosbou
  • 3,919
  • 8
  • 31
  • 36
1
vote
1 answer

Why do I get an error at onCreate() using ActionBar Sherlock with older android versions?

* update: I don't know why, but removing some unused imports apparently fixed it. * When starting my app on older android versions (e.g. 2.2) I do get the following error log... But I don't get any errors on newer Android versions. "at…
Steffen
  • 2,197
  • 2
  • 24
  • 38
1
vote
1 answer

byte external allocation too large for this process", "VM won't let us allocate bytes"

I'm using Android 2.2 and, when I'm trying to return from second activity to first activity by pressing a back button, the app crashes and produces a logcat error: byte external allocation too large for this process, VM won't let us allocate…
1
vote
4 answers

In android logcat some of the log information missing .How to see all log cat details/data or save in a file?

Im new to android. Im developing some android app. It sends/receive the data to/from server I shows the the data from server which is received in log cat. The data is received the application processed it. But in log cat the following is displayed…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
1
vote
0 answers

Read logs on Jelly Bean (without permission, maybe with root?)

I'm looking for a way to read logs on Android Jelly Bean. I know, that the respective permission isn't granted anymore, that's why I'm asking for an alternative. Is root access a possibility? Thanks.
Kirill Rakhman
  • 42,195
  • 18
  • 124
  • 148
1
vote
2 answers

What are these errors in Android Logcat ? My app works fine so : why these errors?

When running an Android application, I get these errors, but everything actually works fine on the device. What's that means? And how to get rid of them ? 07-20 11:09:38.119: E/AndroidRuntime(930): FATAL EXCEPTION: main 07-20 11:09:38.119:…
cleroo
  • 1,145
  • 2
  • 11
  • 17
1
vote
2 answers

Why does the LogCat shows "sqlite returned: error code = 1, msg = no such table: personalInfo"

I don't understand why there is no such table even though I've already created it through coding. Anyone knows why and can help to solve this problem? 07-11 13:41:59.335: I/Database(288): sqlite returned: error code = 1, msg = no such table:…
Preeyah
  • 363
  • 3
  • 16
  • 42
1
vote
2 answers

How to get only log.i values from logcat of Application?

I want to save logcat values, specifically LOG.I, of my application in sdcard. I have used following code to get all log values but unable to filter it to get only specific log.i values. Please suggest how to do it? try { File filename = new…
suprita
  • 211
  • 1
  • 9
1
vote
0 answers

"Surface" tag errors in LogCat

I have been getting a set of very specific errors when developing a very basic camera application. The code is almost identical to that on the android website. The Galaxy SII is the only phone giving me the error which appears as follows in my…
Daniel Smith
  • 8,561
  • 3
  • 35
  • 58
1
vote
1 answer

How to pass variable arguments to __android_log_print?

Original code that prints to stderr: extern "C" { /* error: output error message */ void Error(const int error, char *message, ...) { va_list arg; fflush(stdout); fflush(stderr); if (error > 0) fprintf(stderr, "\nError: "); …
Paxmees
  • 1,540
  • 1
  • 15
  • 28
1
vote
1 answer

Android - Eclipse Fast View Not Dismissing LogCat with Escape

Can't seem to find anything on this except an Eclipse bug report in 2004 (which I assume has been fixed!). While using Eclipse (Galileo), I like to keep the LogCat in a Fast View to keep my screen clean and full of code. But I often have to switch…
SMBiggs
  • 11,034
  • 6
  • 68
  • 83
1
vote
1 answer

Application Closes when using this class

When i open this class my application closes. the logcat says there is a problem with line 28 but the code on it i got from a question on here the code for ths class is below public class WorkoutProgress extends ListActivity { private…
Darren Murtagh
  • 591
  • 2
  • 6
  • 28
1
vote
2 answers

date picker not working in Android

i have a datepicker setup and it keeps crashing the application. i followed this Tutorial and i don't know why it is not working. i will post the full code of the class below to show as well as the logcat i get when it the application crashes main…
Darren Murtagh
  • 591
  • 2
  • 6
  • 28
1
vote
2 answers

Unable to display database in ListView

I am trying to get my application to display information that is in a table I have set up in my database. From what I gather, the database is setup correctly and the code it's correct but I don't know what is causing the error. I will post all the…
Darren Murtagh
  • 591
  • 2
  • 6
  • 28
1
vote
1 answer

Android AsyncTask process (logcat) does not output messages (on emulator)

The logcat process is launched, I don't get any error or force close. It simply seems to not generate any output. String commandLine = "logcat -v time -b main *:V"; String line; try { process =…
ilomambo
  • 8,290
  • 12
  • 57
  • 106