Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
android-notes authored Feb 17, 2017
1 parent ff773aa commit 17320d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Language
> 打不死的小强,永不crash的Android。
> android 开发中最怕的就是crash,好好的APP测试时没问题,一发布就各种crash,只能通过紧急发布hotfix来解决,但准备hotfix的时间可能很长,导致这段时间用户体验非常差,android中虽然可以通过设置 Thread.setDefaultUncaughtExceptionHandler来捕获所有线程的异常,但主线程抛出异常时仍旧会导致activity闪退,app进程重启。使用Cockroach后就可以保证不管怎样抛异常activity都不会闪退,app进程也不会重启。
关于DefaultUncaughtExceptionHandler的用法参考这 [DefaultUncaughtExceptionHandler](https://github.com/android-notes/Cockroach/blob/master/DefaultUncaughtExceptionHandler.md)

### 使用方式

Expand Down

0 comments on commit 17320d7

Please sign in to comment.