安卓:Effecient方式来阅读logcat的输出方式、Effecient、logcat

2023-09-06 17:35:42 作者:醉酒诉相思

如何才能读取正在运行的进程的输出以最有效的方式。

How can one read the output of a running process in the most efficient manner

让我解释什么,我想要的目的。

Let me explain what i am trying to achieve.

我想读通过我的应用程序的logcat在手机上

I am trying to read logcat via my app on the phone

我希望把它使得在logcat中的任何更新立即反映和应用程序是有效的,一样都不能少电池消耗。

i want to make it such that any update in the logcat is instantly reflected and the app is efficient , like less battery consumption.

推荐答案

android-记录可能是你的兴趣。它的一个开源的应用程序,允许你从你的手机上的应用程序读取logcat的。我敢肯定,你会发现你需要在这个程序中code。

android-logger may be of interest to you. Its an open source app that allows you to read logcat from an app on your phone. I'm sure you will find the code you need in this app.