I\'m a total noob at Android programming, and wanted to learn how to debug my apps. I can\'t seem to have my Log.i|d|v calls displayed in the LogCat.
Here\'s the
Please go to Task Manager and kill the adb.exe process. Restart your eclipse again.
or
try adb kill-server and then adb start-server command.
There are a number of reasons why you might not see logs, most of which are listed below. Here are some steps to check most reasons:
Using the SDK 4.0.3 you have to explicitly select it on debug configurations > project > target or else it will never show using Eclipse Indigo (3.7). Of course an eclipse restart ensues.
I have this problems and fixed, String TAG without space:
"my tag" // noting show
"my_tag" // is ok
Probably it's not be correct, and a little bit longer, but I solved this problem (Android Studio) by using this:
System.out.println("Some text here");
Like this:
try {
...code here...
} catch(Exception e) {
System.out.println("Error desc: " + e.getMessage());
}
make your app force close once this will start LogCat again ...
use this for force close :D
setContentView(BIND_AUTO_CREATE);