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

房东的猫 提交于 2019-12-29 07:24:05

问题


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?


回答1:


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 !




回答2:


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.



来源:https://stackoverflow.com/questions/6376889/can-i-see-the-logcat-on-the-android-phone-itself-without-connecting-it-to-the-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!