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

Android Service, JavaMail API

I have got piece of code working. But when i try to run, the error exception show. I use broadcast receiver to start service on every reboot, the service monitor sim change and generate email to user. But i have problem when compile, LogCat show the…
BangBoat
  • 425
  • 2
  • 5
  • 11
1
vote
2 answers

android logcat does not display Time, PID etc

Can anyone help to fix the strange display of the logcat?
Yu Lu
  • 300
  • 1
  • 12
1
vote
5 answers

Save app event (logcat) in file on sd

I want to save my app logcat events in a text file on sd card. my alarming app work properly in my and my friends devices, but other have error on my app. for example they say alarms in app are in wrong time, but i dont see this error in my and my…
Omid Omidi
  • 1,670
  • 2
  • 16
  • 23
1
vote
0 answers

Logcat filter showing everything from A, but only messages from B that starts with XYZ

I want to create a logcat filter in eclipse, that will show me all messages from log tag A, but only messages starting with XYZ from log tag B. Is this possible, and how?
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
1
vote
3 answers

Android: Use LogCat to find where app hangs

My app hangs when calling the takePicture method. It never returns. I opened up LogCat but it is completely empty with no entries at all. Is there a way I can figure out where internally the app is hanging?
Johann
  • 27,536
  • 39
  • 165
  • 279
1
vote
1 answer

android logcat: HOWTO filter and format on command line?

As far as I know, I can't filter application name from cmd, so I have to use the tags instead... I can filter properly, but I can't get the ouput format I want... I'm trying the following and everything works fine... Runtime.getRuntime().exec(new…
prom85
  • 16,896
  • 17
  • 122
  • 242
1
vote
1 answer

Logcat displays nothing when used from Runtime.exec

I'm running the command logcat -d AndroidRuntime:E *:S When ran from adb on my computer, it displays all the things it should. When I try to run it from an Android application with Runtime.getRuntime().exec("logcat -d AndroidRuntime:E *:S"); and…
Nic Wilson
  • 150
  • 3
  • 10
1
vote
1 answer

Not writing in LogCat

Shouldn't this be on the LogCat under info? It's not coming up protected void onDraw(Canvas canvas) { xp1 = canvas.getWidth()/2; **Log.i("Test", "Good");** xp2 = canvas.getWidth()/2; yp1 = 25; yp2 = 760; …
1
vote
2 answers

Getting log info from a downloaded app

I have an android app uploaded in google marketplace. I have been reported an error from a user, which happens only in a specific device. It is not a crash, the application just doesn't work exactly as expected. I have tried to reproduce the error…
richardtz
  • 4,993
  • 2
  • 27
  • 38
1
vote
4 answers

Values aren't being saved in savedInstanceState

For some reason, the values from the gridView aren't being saved from the Bundle. Nothing is being outputted to the logcat either. Am I getting the values from the gridview properly? It is full of edit texts, so it should be getting the values from…
rasen58
  • 4,672
  • 8
  • 39
  • 74
1
vote
2 answers

Fatal Exception on starting activity Android

I have created new activity that my MainActivity Should lunch, some why the application is crashing on the start of the new activity (called GamePlayActivity). Here is the java code: Intent startGameDrill = new Intent(MainActivity.this,…
vlio20
  • 8,955
  • 18
  • 95
  • 180
1
vote
2 answers

Multiple SeekBar activity fatal crash

I have this MainActivity class in Android with multiple SeekBars: package com.simplemathgame; import android.os.Bundle; import android.app.Activity; import android.util.Log; import android.widget.SeekBar; import…
vlio20
  • 8,955
  • 18
  • 95
  • 180
1
vote
2 answers

Android SQLite - NullPointerException when trying to access single row yet can access data as a whole?

Basically, I can insert into my database and view all the results using the below method and a SimpleCursorAdapter displaying to a ListView - works totally fine. // Returns a Cursor containing all JSON strings public Cursor getAllJSONstrings() { …
mgibson
  • 6,103
  • 4
  • 34
  • 49
1
vote
2 answers

Android application crashes when it starts

I've made this application but when I try to lunch it he closes immediately. This is my Principale.java: package com.gabriele.progetti; import android.R.string; import android.os.Bundle; import static java.lang.Math.*; import…
Eulante
  • 309
  • 2
  • 4
  • 15
1
vote
4 answers

How to find error from LogCat in android?

Method or Hint for finding error from LogCat. How to find and solve error from Logcat?
user1884454