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
0
votes
2 answers

Issues with opening activity due to database

I'm having problems with my application.It seem that I can't open my Activity as well as I can't insert data from a ListView into database. But, I can open Activity and insert data into database before I've created 5 tables into one DBAdapter…
Preeyah
  • 363
  • 3
  • 16
  • 42
0
votes
1 answer

Getting the system logs in jelly bean

I've got an app which works fine pretty much most of the time, but I'm finding on occasions stops working. Is there a way to capture the app and system logs on a rooted phone so I can scan through them afterwards to see where the problem is. I know…
Andrew
  • 7,548
  • 7
  • 50
  • 72
0
votes
1 answer

android.widget.ArrayAdapter.getCount(ArrayAdapter.java:291)

How do I fix this error? I can't find anything to help me! Code snippets would be appreciated! The reason the adapter for sp2 is set within the onItemSelected for sp1 is because I want the output for sp2 to be dependent on the selection made in…
Madonk
  • 117
  • 1
  • 8
  • 18
0
votes
5 answers

Android app crash: Unable to instantiate activity ComponentInfo

07-18 04:48:22.465: E/AndroidRuntime(19105): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.liamwli.fa.yearbook/com.liamwli.fa.yearbook.Home}: java.lang.NullPointerException That is the error I get. I have defined the…
Liam W
  • 1,193
  • 1
  • 26
  • 46
0
votes
2 answers

Failed to find provider when trying to get geolocation

I am trying to make geolocation code on android. I am getting the following error in the logcat window even though I am getting a result in the emulator. 07-12 10:45:24.300: E/ActivityThread(237): Failed to find provider info for…
sigway
  • 27
  • 5
0
votes
1 answer

How to see catlog while running app on mobile device

I have an app that is best tested on mobile device, but I also like to see the catlog output. How can I see the catlog while running on mobile device? Edit: Sorry I wasn't clear. You know how when you run app on desktop emulator, the eclipse will…
Jason Ching
  • 1,037
  • 4
  • 19
  • 27
0
votes
2 answers

Android NDK crash log too big to find error

I've got an android application using a shared object in the JNI (that I wrote myself) that is causing a segault. However, I'm having a rough time debugging it, because each time it crashes, my /dev/log/main is flooded with messages that look like…
sleepynate
  • 7,926
  • 3
  • 27
  • 38
0
votes
1 answer

unable to run android connected app engine starter project

I am trying to debug the app engine connected android starter app but when I select account through on my phone (android 2.3.6 and deployed the app on appengine following the tutorial) it shows these errors and prompt to force close the…
0
votes
3 answers

Unable to instantiate activity error? how to solve it?

I made an App. and since I just wanted to test some functions before adding them to the App, I decided to copy my project into a new Project. When I tried to run the new project, the app crashes and the log-cat output is as follows. Manifest…
Amr
  • 187
  • 1
  • 4
  • 11
0
votes
3 answers

Can anyone tell me why do I get this error in logcat?

I'm a Newbie in Android.Please tell me what does the following log cat error mean and how do I get rid of it? In my app what I'm doing is blocking unwanted calls.When I'm pressing backbutton while using my app, I'm getting this error. Please…
Deepthi
  • 875
  • 1
  • 12
  • 20
0
votes
2 answers

Android NullPointerException causing crash

I am creating an android card game. I have created a playing card class and a card deck class. When i run sample code it fails to build the deck. Here is my code along with the logcat PlayingCard.java package com.michaelpeerman.hi_low; public class…
mpeerman
  • 2,050
  • 2
  • 16
  • 16
0
votes
2 answers

Getting an error when trying to multiply and display doubles android

I always have issues for some reason when trying to set a textviews text to a number. In the following code I am trying to make a tip calculator, but when I run the app it force closes. The app works perfectly fine when I remove the items in the…
Pjrat111
  • 213
  • 1
  • 3
  • 9
0
votes
1 answer

why can't I read the logcat output in my program?

I have searched and I have found the following codes will let my program read the output of the logcat in android.However,after I call this function peroidically, nothing happens.Nothing is output through system.out except the "logcat called".I…
Hao Shen
  • 2,605
  • 3
  • 37
  • 68
0
votes
2 answers

android: Reading of LogCat doesn't work without PC connection

I am really puzzled by bahaviour of my app. When I have my mobile connected to eclipse and my service is reading every line of logcat in order to looking for substring - everything is OK. Immediately when I disconnect my mobile from PC, "logcat…
vlkpo
  • 199
  • 1
  • 15
-1
votes
5 answers

Which one should be taken into account, Android emulator or device?

The app, that i am now developing, works on device properly, as i want, however it does not run on Android emulator at all and i cannot get the issue just by analyzing LogCat outputs. So should i just keep testing it on real device or should fixing…
NotCamelCase
  • 1,073
  • 1
  • 10
  • 18