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

Can't pass null for argument 'pathString' in child(). I just face this error when I was trying to update the data

In this code I got the error of Can't pass null for argument 'pathString' in child(). I don't know what is wrong here. In the following line of code I faced error that there is null key: databaseReference =…
Jabbar Kakar
  • 11
  • 1
  • 2
0
votes
1 answer

setContentView(R.layout.activity_acknowledgement) keeps crashing my app

I am doing a quiz app in android studio and this setContentView(R.layout.activity_acknowledgement line from my acknowledge activity keeps crashing my project and keeps showing "the app has stopped " while running. import android.content.Intent …
0
votes
0 answers

Saving Logcat content to local storage but it suddenly stops

I have implemented a solution try { var process = Runtime.getRuntime().exec("logcat ${BuildConfig.APPLICATION_ID}:V brief output") process = Runtime.getRuntime().exec("logcat -f " + "/storage/emulated/0/"+"Logging.txt") …
NarenderNishad
  • 1,058
  • 1
  • 17
  • 31
0
votes
1 answer

Why my Android Stduio application crashes from time to time without any LOG Error

My Android Studio application crashes from time to time without any LOG Error. When I run it several times, sometimes the crash doesn't show up. How can I detect the Error as Logcat doesn't show anything.
user2925716
  • 949
  • 1
  • 6
  • 13
0
votes
1 answer

LogCat output debugging help

My Logcat output for my program failing. It apparently can't access some kind of SD card, but I'm using the emulator. I'm on x64 windows 7, and I ran as administrator. 08-29 19:16:29.360: ERROR/AndroidRuntime(707): FATAL EXCEPTION: GLThread…
Evan
  • 167
  • 1
  • 13
0
votes
1 answer

How can I solve this TextView error in android studio?

I created an app using android studio and Kotlin. there is an error that cause that app crash when I want to change the theme of the app or changing language of the app that both needs to restart the dashboard activity. I do not know how to solve…
0
votes
0 answers

Printing logcat to a file with filters? Using grep?

I am very easily printing my logcat to file by doing this: Process process = Runtime.getRuntime().exec( "logcat -f test.txt"); But I would like to filter the content based on matching words, I thought about using grep and the operator >to print to…
butexa
  • 165
  • 8
0
votes
1 answer

in kotlin app, message listview not displaying emoji view

i have got emoji view in logcat of android studio. but not getting that emoji view in app. i have set emoji textview in layout but its not visible in listview. blank screen only getting val p = message.parseAsHtml() …
chanthini begam
  • 109
  • 1
  • 11
0
votes
1 answer

Facebook connect won't display the Facebook page

I have a facebook application I got from a web named mobisoft. I import the project and do all according to what the web said. My project contain no error and I ran it normally. But when the application ran it didn't display the facebook page. Here…
Karate_Dog
  • 1,265
  • 5
  • 20
  • 37
0
votes
1 answer

AlarmMgr triggered sometime correct and sometimes wrong, Why?

I set the alarmMgr like this: alarmMgr.setRepeating(AlarmManager.RTC, calendar.getTimeInMillis(), 1000 * 60 * 5L, alarmIntent) and BroadcastReceiver output public class BroadcastReciever extends BroadcastReceiver { @Override public…
Grizz
  • 17
  • 2
0
votes
0 answers

How can I get programatically any single Log generated by my App?

Any Android App produces Logs in the LogCat, even those not generated by developer's source code via Log.d, Log.i, Log.w and Log.e etc. etc. etc.. Perhaps Google Developers has some "automagic" thing for this, I don't know about that... The point is…
SebasSBM
  • 860
  • 2
  • 8
  • 32
0
votes
1 answer

Saving Logcat output as application text file: crashes unexpectedly when there are few (or no) events

I've added a method to my application that creates a Logcat file of that session. public void LogcatToTextFile() { Date T = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); String szDateTime = sdf.format(T); …
portsample
  • 1,986
  • 4
  • 19
  • 35
0
votes
1 answer

how can i close the unrelated app showed in the logcat when i use emulator in Android Studio

how can i close the unrelated app showed in the logcat when i use emulator in Android Studio
vihanchou
  • 380
  • 1
  • 3
  • 6
0
votes
1 answer

My app works on emulator but crashes on device on startup

In my android dev in kotlin course, I create a simple to do list, the list seems perfectly fine, no error in coding everything is fixed I run the app on my emulator and it works perfectly fine, but when I run and test it it through my device through…
Vetonn
  • 11
  • 4
0
votes
1 answer

Attempt to invoke virtual method boolean java.lang.String.equals(java.lang.Object) on a null object reference in android studio firebase mainactivity

I am making a chatting application in which when I login, I get this error in Logcat and my app crashes. 2022-03-12 16:09:44.805 22115-22115/com.dccodes.chugli E/AndroidRuntime: FATAL EXCEPTION: main Process: com.dccodes.chugli, PID: 22115 …
KING
  • 55
  • 9