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

My app immanently crashes after I open it. Just updated it after 2 years and with new unity updates (Unity)

I've just finished updating my app, I built the final version ready to be published and I noticed I had a new package name. I overrode the name with the previous name. Now when i open the app. it just crashes immanently. I have LONG logcat here. I…
Vast Shadow
  • 31
  • 2
  • 12
0
votes
1 answer

Saving txt logs into a file creating only once

I am running into a issue when trying to save the logcat to a file . Below is the code: public void createLogs() { if (isExternalStorageWritable()) { File appDirectory; if(Build.VERSION.SDK_INT >= 30) { …
prat
  • 597
  • 8
  • 17
0
votes
1 answer

what does the TAG represent in Log code in android?

When do we use TAG in the log code and when do we use the string? What does TAG represent in log codes? For example, what are the differences between these two lines of code and How do I know when to choose which one? Log.d(TAG, "onClick:…
0
votes
1 answer

android app stop immediately when running on android 11 only without logcat messages

My problem is that my app is working properly on android 10 and below, but when running on android 11 it stops immediately right after launching. I don't know exactly what is the reason and the logcat doesn't give a clear error message. Thanks in…
Ahmed Gamal
  • 55
  • 1
  • 10
0
votes
1 answer

Android studio is not showing the line number of error in logcat

I am trying to get firebase realtime database data into the ViewHolder class but the app is crashing and logcat is not specifying the line in which the error is occurring. Below is the logcat Logcat 2022-01-26 22:04:46.007…
Gum Naam
  • 155
  • 13
0
votes
0 answers

Sending Android logs to logging service

I'm writing an android app in kotlin, and using the standard Log class to write logs throughout my code. For example Log.e(...), Log.i(...) and so on. Sometimes I want to examine those logs, but I don't have access to the device. Is there a standard…
Yossi Vainshtein
  • 3,845
  • 4
  • 23
  • 39
0
votes
1 answer

Why kivy mapview seem to be an error itself on android?

I am trying to make an app using kivy garden's mapview and my app actually work on computers, compile and gets deployed but when the app runs, it instantly close and logcat says that the error is KeyError: 'kivy.garden.mapview' on lines like from…
reza0310
  • 1
  • 3
0
votes
1 answer

Android: Immediate Crash on App Launch (Due to Room Database)

I've migrated my old app to use the new Room database implementation (wow it took forever even though it's got 5 small, simple tables) but now for some reason when I launch the app it crashes immediately. It's especially nice because Logcat doesn't…
clamum
  • 1,237
  • 10
  • 18
0
votes
0 answers

Android Studio app development:2021-12-13 11:39:22.715 27115-27115/? E/com.android.se: Not starting debugger since process cannot load the jdwp agent

So I'm trying to learn how to get data from a website and I created a mock HTTP request in json and this is mt main class: package com.example.weatherapp import android.app.Dialog import android.os.AsyncTask import…
0
votes
2 answers

Android Logcat Help

I am very new to android programming. I am trying to make an application that uses bluetooth connectivity that connects with a chip transfers data. I set up the bluetooth connection but the program wont run it comes up with the "this program has…
YoKaGe
  • 385
  • 2
  • 7
  • 15
0
votes
1 answer

Incoming number from logcat (ADB) contained dots

I am using ADB and specifically logcat to capture logs from a real android device. During an incoming call, the caller's number is partially hidden. With what it can be connected? Is there a way to see it in full using ADB?
Den
  • 1
0
votes
0 answers

Saving logcat to a file using SAF in android 30

I have been struggling to find a way which will save logcat to file using Scoped Access framework. I have gone through the below link SAF link, but no luck. Till Android 10, I was using "requestLegacyExternalStorage" to make it work with the below…
prat
  • 597
  • 8
  • 17
0
votes
3 answers

Android app Force closes immediately after opening

My prototype android app (I should mention it's my first) crashes whenever I run it through eclipse, as soon as it opens. I have searched this site and many others and this problem seems common, but not in the way it is for me. I have checked the…
cortices
  • 373
  • 2
  • 15
0
votes
0 answers

Log.d displayed nothing in Logcat using eclipse on miui phone

I try to use Log.d to display some message to Logcat in Eclipse but find that it shows nothing. I believe the Logcat ability to show Log.d or not IS hardware/device dependent, that is becuase the phone I worked on is miui. There may be some kind of…
Mr Chan
  • 47
  • 7
0
votes
1 answer

Errors when launching app on Android Studio

Why am I receiving so many errors on logcat when I run my android app? I am new to using android studio and also exploring the usage of maps on android apps. However, I ran into many issues in the process of launching the app as shown…
ryanongwx
  • 38
  • 1
  • 6