Using LogCat on JellyBean

I have an error that happens in a very random way, so I rely on the LogCat monitoring application that I bought from the Play Store to see the exceptions that were discarded on my device when this happens. Since I use Jelly Bean, I do not see the registration. I read that with Jelly Bean, the application can only see the output of LogCat .

So, outside of the rooting of my device, is there any way to read the LogCat output of my application right on my phone? I know that I can use Eclipse, but, as I said, this happens randomly, and I can’t manually recreate it.

+8
android debugging android-logcat
source share
2 answers

So, outside of the rooting of my device, is there any way to read the LogCat output of my application right on my phone?

Not really. You can read aLogcat bugtracker discussions about this issue:

After some reading and some testing, I found three ways to make aLogcat work, all of which use root.

A more detailed discussion READ_LOGS permission is not granted to third-party applications in Bean jelly (api 16)

+3
source share

What do you think of writing directly on the screen using textView? Of course, this will only be for debug builds.

This message contains code that displays logcat errors. Writing data to an Android log file in a file

Now all that remains to be done is to put try / catch stmts in your code, where try surrounds the code, which, in your opinion, is problematic. The trap delegates the recording of the error message to your screen.

+2
source share

All Articles