How do I obtain crash-data from my Android application?

前端 未结 30 2514
庸人自扰
庸人自扰 2020-11-22 01:10

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance

30条回答
  •  你的背包
    2020-11-22 01:34

    use this to catch the exception details:

    String stackTrace = Log.getStackTraceString(exception); 
    

    store this in database and maintain the log.

提交回复
热议问题