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

d method in Android Log class

i'm curious how static methods: d, vv,etc methods works in Android. I have opened the source code and so that the only thing the methods d,v,etc do is to call to static println method, but this function does nothing. Attached println method code…
Eitanos30
  • 1,331
  • 11
  • 19
0
votes
1 answer

Saving logcat output to a String value

I need to save the logcat output when i get an ANR error to a string variable, and display it on a text view inside my application. I have tried to do so by calling this function on button press Process process =…
Chakson
  • 23
  • 8
0
votes
2 answers

Android - Saving logcat to a file and limit the file size

I am able to save the logcat to external file with the link - Saving Logcat to a text file in Android Device Is there any way to limit the file size? i.e. For e.g. I want the output file size shouldn't exceed 2MB. If it exceeds the limit, it should…
Kameswari
  • 738
  • 7
  • 27
0
votes
1 answer

What is Logger Buffer Sizes Of Developer Option

What is the Logger Buffer Sizes option of developer options? We have various options like: Off 64 K 256 K 1 M 4 M 16 M If we are changing the buffer size, do we have any impact in the buffer size of logcat and dmesg utilities. What will be the…
0
votes
2 answers

App working fine on emulator but crashes on real device

My project runs perfectly on android emulators (Pie 28 and Oreo 26) but when I tried to run it on my real phone which is Lollipop 5.1 ,My app is installed but it does not launch. Every time I open it says "Unfortunately your app has stopped".I have…
0
votes
1 answer

How to tail output from adb logcat and execute a command each new line

I'm trying to do very likely to this post but instead of reading from a file I want to "subscribe" to the output of adb logcat and every time a new line is logged I will run some code on this line. I tried these codes, but none worked tail -f $(adb…
Fnr
  • 2,096
  • 7
  • 41
  • 76
0
votes
1 answer

Unity android build sqlite database size is zero bytes

I am stuck at running unity3D android build in android device, it runs in editor but when I create an android build and try to run in my android device, I get errors in logcat like: no such file or directory and No such table when I try to access…
Ashok Damani
  • 3,896
  • 4
  • 30
  • 48
0
votes
2 answers

How to solve Log cat Error? Project ImageViewExample

Hi Now trying to create folder in my gallery....normally my grid view display images in separately but I need folder in my gallery. so, I am using file class....if i run my project log cat indicate error how to solve these error? please check my…
viji
  • 3
  • 2
0
votes
1 answer

LogCat android unity3d game crashing

Building an android game in UNITY, with admob and external links in playmaker using applicationOpenURL FSM. Since I've been building with the admob and external links, my game isn't building properly, but I`m not getting any error codes in…
solzier
  • 25
  • 1
  • 4
0
votes
1 answer

V/FA: Inactivity, disconnecting from the service after successfully generating .apk

I have been compiling my Android app without problems for months. I am using Android Studio 3.4.1. I still can run the app. The problem is that after a few seconds (not even a minute for sure), I see this: V/FA: Inactivity, disconnecting from the…
Jaime Montoya
  • 6,915
  • 14
  • 67
  • 103
0
votes
2 answers

Get Below logs in log cat

I'm getting this log in my logcat I/zygote: Background concurrent copying GC freed 148531(5MB) AllocSpace objects, 18(936KB) LOS objects, 32% free, 12MB/18MB, paused 3.758ms total 217.199ms is this something that needs to be addressed or it is can…
Mohan K
  • 464
  • 5
  • 18
0
votes
1 answer

My gallery project indicate log cat error?

Hi if i run my project its indicate this logcat error...how to solve this error. please help me... log cat:` 04-28 15:19:01.210: DEBUG/AndroidRuntime(376): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< 04-28 15:19:01.210:…
rajaesh
  • 3
  • 2
0
votes
0 answers

I am trying to add some data using Shared Preference but after using shared preference in my code my app has stopped working

This is the java code. After adding the part of the shared preference in my code my app has stopped working. Can someone help me out Button bt, dt, cp, adta; SharedPreferences sharedPreferences; Set hash_Set = new HashSet(); String…
user11520652
0
votes
0 answers

Logcat capture only app log w/ Developer options off

I'm capturing log to a file during runtime. Here is the method I use private void executeCommand(String command) throws IOException { Log.e(TAG, "executeCommand: " + command); Runtime.getRuntime().exec(command); } I need to capture my app…
Andrey Rankov
  • 1,964
  • 2
  • 17
  • 33
0
votes
1 answer

"Unable to start activity" error

My code: private void filldata(){ Cursor datacursor = sqlite.fetchalldata("Program"); startManagingCursor(datacursor); String[] from = new String[]{DatabaseHelper.KEY_PROGRAM_DATE, DatabaseHelper.KEY_PROGRAM_TIME,…
newbie
  • 83
  • 2
  • 11
1 2 3
99
100