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

Android Log.X not printing stacktrace

e.printStackTrace() works fine (i.e. prints my stacktrace to stderr) but Log.X fails to print a stacktrace at all. For example: } catch (IOException e) { Log.e("Network", "Exception", e); e.printStackTrace(); } Output: 08-31 03:46:21.992:…
ostergaard
  • 3,377
  • 2
  • 30
  • 40
16
votes
1 answer

android studio Logcat shows json data in single line and part of data

I used Logcat to show json data in android studio, but it just showed in single line and it couldn't show the whole json data. So how should I do can make Logcat show the whole json data in multi-line like eclipse? Thanks for help!
Alan W.
  • 4,566
  • 2
  • 15
  • 26
16
votes
3 answers

Is this warning caused by my app? - "Implicit intents with startService are not safe"

I get this warning in Logcat while developing. Is it caused by my app? 16699-16699/tld.me.myapp.debug W/ContextImpl﹕ Implicit intents with startService are not safe: Intent { …
cja
  • 9,512
  • 21
  • 75
  • 129
15
votes
4 answers

Is it safe to keep Log.i on production?

In my android application i extensively use Log.i, Log.e. On these commands I usually pass SQLite queries or http rest urls that communicate with my application. My question is: Is it safe to keep these logs when the application reaches the Play…
antoniom
  • 3,143
  • 1
  • 37
  • 53
14
votes
1 answer

What is the meaning of "avc: denied { read } for name..." line in logcat?

I am wondering about avc: denied messages in my logcat. W/RenderThread: type=1400 audit(0.0:631436): avc: denied { read } for name="perf_ioctl" dev="proc" ino=4026533695 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0…
anika
  • 153
  • 1
  • 2
  • 6
14
votes
2 answers

Android studio 3.0: Studio Profilers encountered an unexpected error

My application runs perfectly. But my logcat give an error every time when I run my application: 12-11 20:45:42.539 946-1547/package E/StudioProfiler: Studio Profilers encountered an unexpected error. Consider reporting a bug, including logcat…
14
votes
3 answers

BubblePopupHelper filling Android Debug Log

So I noticed when I was debugging that there seems to be a tag that's repeating through my app entitled "BubblePopupHelper" with text: "isShowingBubblePopup : false" Screenshot of the log To my knowledge, I'm not using or causing it. Does anyone…
user2062025
13
votes
1 answer

how can i access logcat file on device

How can I access and read the logcat file (at "/system/bin/logcat") from the device, using my application. My phone is not rooted. Do I need a super user permission?
user975349
  • 173
  • 2
  • 6
13
votes
3 answers

Android display Logcat in TextView

The app I'm building have root-access to Android. I wish to show Logcat log information in one of the TextView so it can show up on the screen while i'm debugging. Can someone give me some ideas which library/function i can call to access those…
WorldWind
  • 311
  • 1
  • 5
  • 17
13
votes
1 answer

Link of class 'Landroid/support/v4/app/Watson; failed - Unable to resolve superclass of Lcom/actionbarsherlock/app/SherlockActivity

I have an android project that I was working on a few weeks ago it was working fine in my last attempt, but now the project all compiles fine, but while launching application, I am getting the following warning and it crashes my application. Unable…
bCliks
  • 2,918
  • 7
  • 29
  • 52
12
votes
3 answers

Does too many log writing decreases android application performance?

I would to know whether logging can decrease application performance? Also, please give me some tips to increase android application performance.
Vishnu Rajan
  • 241
  • 3
  • 9
12
votes
4 answers

How to Filter for multiple tags in LogCat in Android Studio?

I'd like to filter my LogCat based on multiple TAG, How can I achieve this? Should I use Regex in order to filter by multiple TAG? For example, I have this two lines of code which are used in my codes: private static final String TAG1 = "My TAG…
AhmadReza Payan
  • 2,171
  • 1
  • 23
  • 33
12
votes
0 answers

Why does MediaPlayer show so much Verbose log on android?

I'm using MediaPlayer to show SplashVideo and the log is suspiciously filled with verbose message. It's not an error but still it is not a normal behavior . Uri video = Uri.parse("android.resource://" + getPackageName() + "/" +…
Jesus Dimrix
  • 4,378
  • 4
  • 28
  • 62
12
votes
2 answers

Android Logcat Rotation Size and Number Of Rotation Parameters

Hi Android Developers! I am trying to figure out what -r and -n parameters for logcat utilitiy mean. When my log file exceeds -r number of kilobytes in size; it deletes the whole content of my log file which leaves it empty or creates a new file to…
iliTheFallen
  • 466
  • 7
  • 16
11
votes
2 answers

Android Studio Logcat Search

I am facing a strange problem with android studio. In logcat monitor, there is not much space for search box. I am not able to find out any option to make it larger. is there any way to make this larger?