I want to view the Log
on device i.e the System.out.println()
.
I am able to view on DDMS but how to view on device screen while running an APK file.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Provided you have root on your phone you can use the
logcat
utility in theTerminal
application:It displays the same log (
/dev/log/main
) as theadb logcat
command that was suggested in another answer.There is also a Logcat app available for android.
code.google.com/p/android-random/downloads/list
Run 'adb logcat' on the command line of your PC would also work. You want to see the log output on the device's screen though? Hmm, why? I don't believe you can call up a shell or access the logs from an application, unless your device is rooted.
What you can do, of course, is create a TextView in your app, and update its contents with whatever message you like.