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
0
votes
1 answer

Filter out a specific LogCat message from a library

A library I'm using (com.jaredrummler.android.device.DeviceName) is printing the below stack trace repeatedly. I'd like to make it stop but can't figure out how. How can I get rid of this message but keep all others in my LogCat? 2021-10-07…
Gavin Wright
  • 3,124
  • 3
  • 14
  • 35
0
votes
1 answer

android Eclipse logcat error: device() request rejected - device not found

I am having trouble getting my somewhat new Thunderbolt to print to logcat in eclipse...when I plug it in, I get the following error in the console: [2011-08-04 11:23:10 - DeviceMonitor]Failed to start monitoring [2011-08-04 11:23:11 -…
TomBomb
  • 3,236
  • 5
  • 31
  • 40
0
votes
2 answers

SMS verification code request failed: unknown status code: 17020 null

How can I solve these errors: 2021-10-04 13:53:00.422 8440-8440/com.example.firebase.sms.smsotp4 E/zzf: Problem retrieving SafetyNet Token: 7: 2021-10-04 13:53:00.618 8440-8802/com.example.firebase.sms.smsotp4 E/FirebaseAuth: [GetAuthDomainTask]…
0
votes
2 answers

Eclipse/Logcat: how to avoid to loose all filters in logcat when restarting Eclipse?

I use the "logcat filters" in order to be in position to analyse efficiently the messages displayed in LogCat. Log.d("LOGCAT_FILTER","MESSAGE_DISPLAYED"); My problem is that all the filters I created in LogCat are deleted when I restart Eclipse...…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
0
votes
2 answers

location manager android problem

I am trying to get a user's location when a button is clicked. I have the following code in my button onclick listener: locationManager = (LocationManager) getSystemService(LOCATION_SERVICE); Criteria criteria = new Criteria(); bestProvider =…
Brahadeesh
  • 2,245
  • 8
  • 40
  • 58
0
votes
0 answers

How to find the Android App lifecycle activity?

I am trying to perform the digital forensics experiment in my Android phone. I would like to know how to get the common chatting app lifecycle log, like Discord, Facebook Messenger or WhatsApp. I want to find the exact time each of the lifecycle…
Joe
  • 1
  • 3
0
votes
0 answers

Displaying logs in Android Studio by adding code to Smali

In a decompiled application, I am trying to insert the information output into the logcat, but I can not figure out what I am doing wrong. There is a code that displays the version number in the application, when the condition changes, I get the…
0
votes
1 answer

Why Log.d() and Log.v() not printing

I'm using Android 2020.3 version. It is currently being tested on Android 11 (api 30) version. When writing in Log.d or Log.v, the log does not work, and Log.e, Log.w, Log.i, and Log.wtf work normally. why doesn't it work?? ps. it works normally on…
0
votes
1 answer

AdMob ads stop showing suddenly on all devices

AdMob ads in one of my apps have been showing normally for the first 1.5 days after being published on Google Play. However, all of a sudden, ads stop showing, which occurred in all 3 devices available to me. I did not update the app on Google Play…
KKH
  • 81
  • 1
  • 8
0
votes
1 answer

Optimize sed on logcat

I've been using grep and sed on some logcat output to make it more readable and I noticed my output was noticeably slower than just grep-ing the output. I understand sed is obviously going to add more runtime, but I wanted to check for any…
0
votes
0 answers

View logcat of application after boot android

Hello i create a app with a service will start after reboot phone but after reboot phone, app can't start,it have error. How i can see logcat to find error like when i connect my phone to pc and view logcat in android studio
0
votes
2 answers

Android | Logcat is not displaying app startup time

I have been trying to measure the app startup time and stumbled across App startup time. It is mentioned here that using logcat with no filters we can see the log ActivityManager: Displayed com.android.myexample/.StartupTiming: +3s534ms (total…
0
votes
1 answer

How can I color the output in Logcat or Run in Android Studio?

Wanting to make some output in Logcat or Run more visible, I would like to color it. But nothing worked, that I found on stackoverflow, not the ANSI escape codes and not even System.err.println("Color")! (See e.g. this question) Finally I tried:…
Liggem
  • 1
  • 2
0
votes
0 answers

Logcat not displaying Application logs

So, it is not that the Logcat is not displaying logs at all - it displays some system logs but none of my App logs are visible. I have tested the App instance by connecting to multiple devices and that is the only device it is happening with. The…
Manish Kumar Sharma
  • 12,982
  • 9
  • 58
  • 105
0
votes
1 answer

My Android program works when running, but not when debugging?

I've been lazy with debugging for the past couple of years with easy school projects and have just used print commands to see what was going on in my programs, but now I'm working with something more sophisticated where that just won't do, and I've…
Kalina
  • 5,504
  • 16
  • 64
  • 101