e.printStackTrace(); in string

前端 未结 5 1287
执笔经年
执笔经年 2021-01-30 13:00

There are e.printStackTrace() method to print exceptional error, so I would like to take entire exception in String and show it by Toast.makeText

5条回答
  •  暖寄归人
    2021-01-30 13:32

    It's doable, but don't do this. Show just the error message (even that is too much for 'real' users), the full stack trace should go to the log only.

提交回复
热议问题