Show log messages on screen for Android application

后端 未结 4 1405
难免孤独
难免孤独 2020-12-18 20:24

Is it possible to display the log messages (which I print using android.util.Log) on screen in an Android application?

Is there any other better method

4条回答
  •  自闭症患者
    2020-12-18 20:45

    I use "android.widget.Toast.makeText(Context context, CharSequence text, int duration)" to do something like what you are asking. Seems like the easiest way to get some quick messages on the screen and make it go away automatically (based on the last parameter).

    :-)

提交回复
热议问题