Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I see the Logcat on the Android Phone itself, without connecting it to the computer?

Tags:

If yes, then how? Does Logcat also log events like starting time of application on its own, or the application has to use something like Log.v(App_name,message) at the start of the application?

like image 743
Poojan Avatar asked Jun 16 '11 18:06

Poojan


People also ask

How can I get Logcat on my Android phone?

To gather logs (logcat) from an android phone, follow either one of the following processes. Install Android SDK from http://developer.android.com/sdk/index.html. Make sure platform-tools is included (http://developer.android.com/sdk/installing/adding-packages.html). Enable USB Debugging on your device.

How do you view system log files on an Android device?

Android 4.0 and older You can either download the SDK and use adb logcat or get Logcat Extrem from the Google Play Store, which shows the log directly on your phone. Alternatively, you can use Terminal Emulator with command "logcat > /sdcard/log. txt" for continuous writing of the log to a file on the SD Card.

Where do Android logs go?

To access the logging output, run the 'adb' executable with following arguments to capture the Android Enterprise related logging: Windows: C:\Users\[username]\AppData\Local\Android\sdk\platform-tools> adb logcat -G 32M; adb shell setprop persist. log.


2 Answers

exactly Sashi : aLogCat is basical, but if you want your own reader, there is a special permission for this : Read_logs.

The least you can see is an entry from the ActivityManager : looking like this approx.

- Timestamp - INFO/ActivityManager(7703): Starting: Intent {act=android.intent.action.MAIN
cat= [android.intent.category.LAUNCHER]cmp=com.lemonde.androidapp/.SplashActivity 
bnds=[5,553][115,671] } from pid 7786

and here is an interesting tutorial

Good luck !

like image 113
olamotte Avatar answered Sep 29 '22 01:09

olamotte


There are a few applications in the market that will let you view the logcat on the phone. One example is aLogCat. Also, I'm pretty sure that it does log a message when the application gets loaded (certainly for the activity being started.

like image 37
Sashi Kolli Avatar answered Sep 28 '22 01:09

Sashi Kolli