How to print log messages with in Android framework

前端 未结 5 876
清歌不尽
清歌不尽 2021-01-19 06:57

I am trying to print log messages within core Android framework files. For example, I tried logging messages within MediaRecorderClient.cpp under framewor

5条回答
  •  时光说笑
    2021-01-19 07:12

    What kind of error do you receive? If it does not compile, make sure you've included , also in Android.mk:

    LOCAL_LDLIBS := -llog
    

    If it compiles but does not produce any output, then, like @Warpzit has said, you have to look at logcat to see your messages.

提交回复
热议问题