How to print log messages with in Android framework

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

    First declare string

    Private String Tag = getClass().getsimplename();
    

    and than in your method

     Log.d(Tag,"This is my oncreate method");
    

提交回复
热议问题