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

Log cat in Reverse Chronological Order

Is there any way to make the Log cat entries in in Reverse Chronological Order?
Mithun Sreedharan
  • 49,883
  • 70
  • 181
  • 236
0
votes
1 answer

Why some activity intent does not have action

Might be a dumb questions, but ... Normally when you launch an activity you get the following in the logcat output. For example, Wifi setting page: 12-28 16:47:18.125: INFO/ActivityManager(2461): Starting activity: Intent {…
Safecoder
  • 1,035
  • 2
  • 17
  • 32
0
votes
1 answer

LogCat:Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required

I was trying to do some data loading in Splash page in my app using asynctask, but the app stuck at the splash screen, and logcat print: Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer…
oratis
  • 818
  • 1
  • 9
  • 29
0
votes
1 answer

CurrencyWidget app run time errors

I am new to android programming, just got the code from http://www.droiddraw.org/tut4.html and trying to make a currency converter application. I am planning to get the currency conversion rates from the Internet and using JSON in the app. The…
0
votes
1 answer

What are the contents of logcat file?

I have to parse the logcat output for my android application.So i wanted to know logcat content. I surfed a lot but i don't a proper answer. what are the logcat contents and when the system writes the logcat file? Thanks Pushpa
pushpa
  • 573
  • 2
  • 7
  • 19
0
votes
1 answer

Getting And Displaying Date Info In Android

Currently I am trying to get the date (Month and Year specifically) and display it using a TextView but my program is force closing. Here is where I "get" the month and year. Calendar cCalendar = Calendar.getInstance(); int currentYear =…
Cistoran
  • 1,587
  • 15
  • 36
  • 54
0
votes
1 answer

Changing Layouts On Button Click In Android

So as of current I am making an Android application with multiple layout files that swap on a button click. Currently I am having an issue. I have a user click a button that opens an AlertDialog with multiple radio buttons, they select one then hit…
Cistoran
  • 1,587
  • 15
  • 36
  • 54
0
votes
0 answers

Disable printing to console (logcat)

Possible Duplicate: Android logging I read somewhere that in the manifest you can set a flag that will disable printing to logcat but I couldn't find it now. My question is how can I disable printing to logcat witout to delete my log lines in my…
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
1 answer

LogCat filtering

Is there a way to quickly filter the logs by PID? I'm tired of typing in the filter name and PID manually each time. It seem so straightforward and logical to right-click the message and choose "Filter by id" from the context menu, but LogCat has…
Vitaly
  • 4,358
  • 7
  • 47
  • 59
0
votes
1 answer

how to use my custom logger in android application

I am facing a problem regarding putting my custom log file into the android application path and explore it. Problem statement: I have one android application which is using several custom java components(.jars) and there is one Logger component…
piks
  • 1,621
  • 8
  • 32
  • 59
0
votes
2 answers

NullPointerException Android

While running the application I'm getting these errors 10-09 10:20:57.138: ERROR/AndroidRuntime(282): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rika/com.rika.LatihanActivity}: java.lang.NullPointerException 10-09…
kumisku
  • 103
  • 4
  • 17
0
votes
0 answers

Adb logcat display only OkHttp calls

On android studio you can filter OkHttp calls. Is there a command that allows you to do this from the shell? adb logcat ... Can you give me a hand?
Paul
  • 3,644
  • 9
  • 47
  • 113
0
votes
0 answers

Application getting crashed at runtime

I have coded an app in android studio backend in kotlin Few things that can be problematic(but I'm unable to find any issue in them) Implementation("net.objecthunter:exp4j:0.4.8") used this dependency for mathemtical operations private lateinit var…
0
votes
0 answers

Adb logcat extended data and how to read it

When I run the adb logcat command on the shell it seems different from what Android Studio gives me when I read the logcat there. For example, the date is in compact format. The pid (what I believe is the pid, the third field) on the shell is…
Paul
  • 3,644
  • 9
  • 47
  • 113
0
votes
0 answers

Mouse cursor stops moving in the Logcat window in Android Studio

I'm on the latest Android Studio beta (Android Studio Hedgehog | 2023.1.1 Beta 1) on a Macbook Pro 2015 running macOS High Sierra. I've been facing this issue since the last few beta versions. The moment my mouse cursor moves to the Logcat windows,…
vepzfe
  • 4,217
  • 5
  • 26
  • 46