Getting the crash log and send it as email

后端 未结 5 569
盖世英雄少女心
盖世英雄少女心 2021-02-06 13:23

From my search, i got the below code for getting the Crash Log .

try {
      Process process = Runtime.getRuntime().exec(\"logcat -d\");
      BufferedReader buf         


        
5条回答
  •  盖世英雄少女心
    2021-02-06 13:33

    I haven't tried it but looking at it gives the current log and not the crash report refer to How do I obtain crash-data from my Android application?

提交回复
热议问题