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

Short logcat on Android 13

I'm seeing a small amount of logcat entries for my app since Android 13. I can usually only see a few minutes before plugging the phone in to check the logcat. If I leave it plugged in it doesn't clear and I can see as far back as I could when I…
Flyview
  • 1,899
  • 1
  • 28
  • 46
0
votes
0 answers

How to get Activity/getWindow() from services java class?

I'm trying to run a function that requires passing it a screen capture. When I run this from the main activity, I can run the code like this: SendScreenFunction(getWindow().getDecorView().getRootView(), getApplicationContext()); I'm not trying to…
Bob Dole
  • 31
  • 3
0
votes
0 answers

How to save logcat android as request

I know save logcat to file.txt in android But I wanna filter logcat in output. For example I just wanna write all logcat except I:info to text file. How can I do that. Here my code to save logcat, It's writing all info( above priority V(verbose)) to…
Jamebes
  • 96
  • 8
0
votes
2 answers

Unity AdMob reward ad runs normally, but gets a NullReferenceException on android

I implemented Admob rewarded ads and they work perfectly in unity, but when building and running the game on my Android the ad doesn't run. This is the LogCat error This is the code when I run the WatchAd(int ID) the game seems to get stuck on…
0
votes
0 answers

KivyMD Application is crashing on startup

I converted my files into an APK earlier on Google Colab, however the app just crashes when I try to open it. The Kivy splashscreen shows up then automatically crashes after that. I have included the necessary files and requirements in the…
JoshChang
  • 1
  • 2
0
votes
0 answers

How to have access to logcat without android device monitor?

Now that android device monitor has been deprecated, how to have access to the logcat of an Android device? Of course we can do adb logcat but it's not convenient at all to read/filter the logcat like this. is there any standalone tool available to…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
0 answers

How do I find out which application woke up my device?

I'm relatively new to ADB. I was playing with adb logcat today when I caught my device (Motorola G Pure) waking up for no apparent reason (device wasn't unplugged/plugged back in, no known issue with the power button, no notification/alarms,…
0
votes
0 answers

adb logcat > file.log encoding

I use adb logcat > file.log in window and then open file.log in vscode. It shows that the encoding of file is UTF-8. But the chinese is messy code. In Android Studio Logcat and powershell7 terminal, the logcat show chinese correctly. But After…
Ken Lee
  • 41
  • 1
  • 5
0
votes
0 answers

Suddenly Debug tab shows nothing and Logcat also disappeard?

I'm using Android stuido in MacBook Pro with M1 chip laptop. Suddenly debug tab shows nothig and logcat also disappeared I could not see any logs. And the issue not only this project, this problem remains in all of my project. I tried all solutions…
Anand
  • 4,355
  • 2
  • 35
  • 45
0
votes
2 answers

Android-What is this error: Unable to start activity ComponentInfo?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mysite.android.app/com.mysite.android.app.NameApp}: android.view.InflateException: Binary XML file line #2: Error inflating class at…
Tim
  • 1,606
  • 2
  • 20
  • 32
0
votes
1 answer

ArrayAdapter throws an exception when scrolling up in a list

I am using a custom adapter to create a list, generally it works fine, but whenever I scroll down a bit and back up, it will crash once the headline is supposed to be shown / loaded (I am guessing the latter). It works as intended and I can scroll…
Tim
  • 1
0
votes
1 answer

What is happening when logcat prints the logs between the time a device was last connected to Android Studio and the present?

Sometimes when a phone connects to Android Studio, it will print logs between the time it was last connected to Android Studio and the present. This is cool, but I can not replicate it. Some times it happens, sometimes it does not. I have a guess…
John Glen
  • 771
  • 7
  • 24
0
votes
1 answer

jenkins pipeline setting up a parallel build and stopping tasks

Need help setting up a pipeline on jenkins. It is necessary to run tests and collect logs in parallel, it worked out, but now there is another problem, the collection of logs is not completed. Maybe there is some method how to stop a task after…
0
votes
0 answers

ADB Shell is not displaying logs continously

I am trying to debug a Yocto project. I have flashed cpp binaries on some device. Now I my trying to display logs using below adb command adb shell tail -f main.log The problem i'm facing is that logs are not displayed continuously.I have to…
Pulkit Sharma
  • 390
  • 2
  • 14
0
votes
0 answers

I am not able to read logcat in android studio after update new version

After Update of android studio chipmunk | 2021.2.1 Patch 1 I am not able to debug my application due to * format. I am attaching logcat screenshot.