View registration device

I want to view Log on device ie System.out.println() . I can view DDMS, but how to view the device screen while the APK file is running.

+4
source share
3 answers

If you use root on your phone, you can use the logcat utility in the Terminal application:

 # logcat D/dalvikvm( 142): GC freed 200 objects / 8744 bytes in 254ms etc.. 

It displays the same log ( /dev/log/main ) as the adb logcat , which was suggested in another answer.

+1
source

There is also a Logcat app for Android.

code.google.com/p/android-random/downloads/list

+3
source

Running "adb logcat" on the command line of your PC will also work. Do you want to see the log output on the device screen? Hm why? I do not believe that you can call the shell or access the logs from the application if your device is not deployed.

What you can do, of course, is to create a TextView in your application and update its contents with any message you need.

-1
source

All Articles