Questions tagged [android-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 the Eclipse IDE provides a logcat view in its Android DDMS perspective, that automatically retrieves logging information

Detailed information on the logcat command is available at the Android Developers API.

For non-developer questions, see the Android Enthusiasts StackExchange.

1085 questions
6
votes
3 answers

How to identify where code is incorrect, if I get warning Converting to string: TypedValue?

Here is the extract from LogCat: 04-04 19:51:51.270: INFO/ActivityManager(57): Starting activity: Intent { cmp=com.example.app/.Preferences } 04-04 19:51:51.710: WARN/Resources(1081): Converting to string: TypedValue{t=0x10/d=0x0 a=-1} 04-04…
LA_
  • 19,823
  • 58
  • 172
  • 308
6
votes
0 answers

What is causing E/BufferItemConsumer error messages in Android Studio logcat?

When debugging my android app, the Android Studio logcat window is flooded with dozens and dozens of identical BufferItemConsumer errors on every click. This is regardless of using the emulator or a physical device. 08-13 18:15:44.497…
duffy
  • 615
  • 1
  • 9
  • 25
6
votes
2 answers

Not able to detect the line number in logcat Android Studio

Android Studio 2.2.3 Android Studio is not able to detect the line number in logcat. Is there any way to solve this? It show Unknown Source in place of line no. LOGCAT is added just the shake of pointing what is the issue. Not to point why NULL…
Ankur Khandelwal
  • 1,042
  • 3
  • 19
  • 40
6
votes
1 answer

Android library *.aar does not log to logcat?

I wrote a simple library, which I use in my main Android Studio project. I imported that *.aar library to my main project and I can instatiate objects from that library or call methods from there. I also have log outputs like: Log.d(TAG, "Lala");…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
6
votes
1 answer

How to get logs of other apps?

I want to read logs from other apps and filter them so when a certain keyword is being logged, my application will perform a certain task. I found several methods of reading logs, but from my testing I could only get my application logs. This is the…
Rosenpin
  • 862
  • 2
  • 11
  • 40
6
votes
2 answers

Android app crash without a useful stack trace

Through out the testing before the release the app worked well. We tested it on a couple of devices and didn't see any problems. Once the app was uploaded to the Play Store one of our users started complaining about the app crashing at one of the…
stavv
  • 71
  • 1
  • 1
  • 3
6
votes
2 answers

"Account determined from" meaning in logs

In my application I'm implementing in-app purchase using Google In-app Billing Version 3 API. In logs from my app I see: D/Finsky (26024): [1204] InAppBillingUtils.pickAccount: com.example.myapp: Account determined from library ownership -…
6
votes
2 answers

Null pointer Exception at ActionBar

I am getting this Error at runtime. java.lang.RuntimeException: Unable to start activity ComponentInfo android.util.AndroidRuntimeException: requestFeature() must be called before adding content StackTrace: 01-22 04:55:59.728:…
6
votes
0 answers

Requesting resource failed because it is complex

I am getting a warning in the logcat each time running the app. Requesting resource 0x7f0b008c failed because it is complex I checked this resource in R.java, its the custome theme I applied. The application works perfectly, I just want to know…
shine_joseph
  • 2,922
  • 4
  • 22
  • 44
6
votes
2 answers

logcat filled with java.io.IOException: Connection refused messages

My logcat is filled with following message - E/UsDebuggingManager( 476): java.io.IOException: Connection refused E/UsDebuggingManager( 476): at android.net.LocalSocketImpl.connectLocal(Native Method) E/UsDebuggingManager( 476): at…
mohan.t
  • 257
  • 5
  • 12
6
votes
3 answers

Execute shell commands and get output in a TextView

I want to execute some shell commands and get the output in a TextView. The command may have a continuous output like ping or logcat. Also, the TextView should scroll automatically as the command output is added in real-time. In order to do so, I…
Vinit Shandilya
  • 1,643
  • 5
  • 24
  • 44
6
votes
2 answers

Touch Calculator in Android

I am trying to create a calculator design.But I do not get any compile time errors.Finally while running the Project/code a nullpointer exception Error occured. MainActivity.java: public class MainActivity extends Activity { GridView…
user3278416
6
votes
1 answer

How to redirect the content in Logcat to file on android?

Recently, I'm developing a android application. I've got a lot of Log.i or Log.e in my code. When I test the app on my phone, which is connected to my computer via USB, I can get all the logs under the Logcat. But when my phone not connecting to my…
Judking
  • 6,111
  • 11
  • 55
  • 84
6
votes
1 answer

Slow transition of Activities: multiple "initializing inflate state" in LogCat

In order to provide a custom typeface in my ListActivity, I wrote a class CustomAdapter extending BaseAdapter according to this example here. However, as described there, I wrote the getView() method like following: public View getView(int position,…
Valentino Ru
  • 4,964
  • 12
  • 43
  • 78
6
votes
2 answers

Reading ActivityManager-logs on a Jelly Bean device?

Jelly Bean has removed the ability to read the logs of other apps (according to this I/O talk), which is a sensible security improvement. However, I need to read ActivityManager-logs for my app to work (to see which app is currently starting). To do…
Nick
  • 3,504
  • 2
  • 39
  • 78