is it possible to replace the default “Force Close” dialog in Android?

后端 未结 2 2149
梦如初夏
梦如初夏 2021-02-03 14:15

I would like the users of my android app to have the option to email me the stacktrace of any uncaught exception that crashes my app. Originally I thought I would just wrap eve

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-03 14:44

    You cannot do what the subject line states from an SDK application.

    However:

    So what I am really looking for is a way to specify some method to be the default handler for any uncaught exceptions. Any suggestions?

    Use Thread.setDefaultUncaughtExceptionHandler().

    Also, consider using Flurry or DroidDrop or something for the actual delivery of your exception data.

提交回复
热议问题