Can logcat results for Log.i be viewed in our activity?
问题 I would like to display Log.i results in my application. Is it possible? If so, how can I do it? 回答1: Here's a blogpost that does exactly what you need it to do. It has a complete code example on how to display the contents of the Logcat log. Here's the code: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; class ReadLogDemo extends Activity { @Override public