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

Is there a way to see the Android side of a PC to Android connection?

Background: I have an Android application that creates a database file based on user input. I have a Delphi7 Windows application that connects to an Android device via TCP/ADB, retrieves the database file performs some actions then either creates a…
0
votes
3 answers

Logcat is redirected to file more then once

I've redirected the logcat to file in my code when my app starts. But when my application is restarted, the redirecting code runs again and the result is that each line in the log is written twice. How can I execute the command and make sure the…
Adibe7
  • 3,469
  • 7
  • 30
  • 36
0
votes
1 answer

countdowntimer-app-keeps-crashing (java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context.getApplicationInfo()')

I am a beginner at the android studio I was trying to build a timer app in android studio and it was always crashing i don't understand why can anyone help here's my code package com.example.timers; import…
0
votes
1 answer

Return a continous terminal log in Python

I'm creating a little Application where I can insert the IP-address of my android phone, and then with one button press. I am wirelessly connected over ADB. This works, now I want to display the log of adb logcat in a scrollable, not editable…
Gorter-dev
  • 115
  • 10
0
votes
1 answer

Using Network Security Config from resource network_security_config debugBuild: true

I was trying out this code, which should show the html code of certain website in the Logcat. But I was only getting Using Network Security Config from resource network_security_config debugBuild: true and java.net.UnknownHostException: Unable to…
Prithin Babu
  • 176
  • 1
  • 3
  • 12
0
votes
2 answers

Error inflating class of binary xml file in Cardview

This is my Java file which is not opening package com.impwala.impwala; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import…
Akshay Raut
  • 181
  • 2
  • 11
0
votes
0 answers

Logcat keep pushing Error "input svInfo.flags is 8"

Logcat is constantly show error : "E/GnssHAL_GnssInterface: gnssSvStatusCb: a: input svInfo.flags is 8 E/GnssHAL_GnssInterface: gnssSvStatusCb: b: input svInfo.flags is 8" my app use Location so turn it off is not a proper solution for me. what is…
Eden Berdugo
  • 179
  • 1
  • 5
0
votes
1 answer

How do I properly capture the logcat using a process and filtering on PID?

It seems straightforward enough. I'm using Runtime.getRuntime().exec(commandString); I've tried String commandString = "logcat -v raw --pid=" + PID); Runtime.getRuntime().exec(commandString); I've tried it without the -v raw and have also tried…
Burnrate
  • 13
  • 5
0
votes
3 answers

What log will end user see using logcat?

I have many Log.d() in my Android app, will my end user be able to see these logs using logcat when they connect their phone to computer? Or will these logs be stripped away in a release build?
Hua
  • 123
  • 8
0
votes
1 answer

What's the difference between 「adb logcat」in terminal and executing「Runtime.getRuntime.exec(“logcat”)」in apps?

One way is to show logs in Windows cmd, and another is to print in the app. What's the differences(or range?) of logs i get because they are all logs from the system. And I also noticed that the logs in cmd here have four different types like…
熊浩茗
  • 19
  • 1
0
votes
0 answers

android studio APK logcat issue

I have just downloaded the APK file of my Android Studio App, my phone is android but it is not compatible with using a USB to use the app on my phone. Is there a way to use Logcat to find errors when using the APK set up on my phone. There was a…
bob
  • 15
  • 5
0
votes
0 answers

Xamarin android app doing nothing at startup

I'm learning xamarin, and i have a problem, My app start up more than 9 sec in flagship phone (P30 pro). It start in MI a1 about 15 sec. In logcat i found a time intervall when noting happen. How can i speed up boot time? I use aot, llvm,…
gyb001
  • 19
  • 1
  • 4
0
votes
2 answers

Why does my expo app crash after build apk

the app doesn't open after I update the code and add: Admob + i18n-js Localization. i think its Localization but i do it right is there any promotion for it in-app JSON like wifi or something like that my app.json { "expo": { "name": "vat…
Omar bakhsh
  • 896
  • 11
  • 18
0
votes
2 answers

Android Studio ( Logcat Button ) disappear in Flutter

I use Android Studio version 3.6.3 on my macOS Version Catalina, when I run my program use dart programming language inside my android studio, my logcat button is not shown or disappear on my android studio, by the way, I use API 30 for created my…
user11822370
0
votes
0 answers

Why my functions is not working but showing error and output in Logcat (Android studio)?

I want to read from Firebase Real-time Database and get the value of total child. I am using ListenerforSingleValueEvent() for this. The function is supposed to run before another function which will use the total child as the 'for' loop condition.…