Android exception handling best practice?

后端 未结 3 1811
生来不讨喜
生来不讨喜 2020-11-29 16:26

If my app crashes, it hangs for a couple of seconds before I\'m told by Android that the app crashed and needs to close. So I was thinking of catching all exceptions in my a

3条回答
  •  被撕碎了的回忆
    2020-11-29 16:59

    i found the "wtf" (what a terrible failure) method in the Log class. From the description:

    Depending on system configuration, a report may be added to the DropBoxManager and/or the process may be terminated immediately with an error dialog.

    http://developer.android.com/reference/android/util/Log.html

    Hope this helps someone

提交回复
热议问题