How to print log messages with in Android framework

前端 未结 5 942
清歌不尽
清歌不尽 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:30

    It also seems that you can only pass a char* to the JNI LOG methods. So if you have numbers in your debug string, you have to put them into a char buffer (with sprintf).

提交回复
热议问题