本文介绍了Android:读取logcat输出的有效方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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-logger 您可能会感兴趣.它是一个开源应用程序,可让您从手机上的应用程序读取logcat.我确定您会在此应用程序中找到所需的代码.

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.

这篇关于Android:读取logcat输出的有效方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 00:37
查看更多