CrashWoodpecker

enframe_2015-09-02-17-51-03

因为我的 Android Studio 在使用的过程中, 经常会出现 App 崩溃了, 而 AS 自带的 logcat 并没有搜集到异常信息, 特别烦恼, 怎么折腾怎么重连都不痛快, 特别是对于那种 “启动崩” 的异常, 很难马上捕捉到, 丢失也是经常的.

所以我做了这么一个库, 仿造 Square 检测并展示内存泄露的 LeakCanary. 当开发过程中, 如果有没有处理的异常导致 crash, 使用了 CrashWoodpecker 以后, 便会起一个新的美观页面, 以很友好的方式即时展示异常信息. 更多内容可以参看一下我写在 GitHub 的文档:

CrashWoodpecker

An uncaught exception handler library like Square’s LeakCanary.

Getting started

NOTE: There is a big bug before VERSION 0.9.5, QAQ thank goodness, it has been fixed in version 0.9.5, please update to 0.9.5+.

In your build.gradle:

dependencies {
  debugCompile 'me.drakeet.library:crashwoodpecker:0.9.7'
  releaseCompile 'me.drakeet.library:crashwoodpecker-do-nothing:0.9.7'
}

In your Application class:

public class ExampleApplication extends Application {

  @Override public void onCreate() {
    super.onCreate();
    CrashWoodpecker.fly().to(this);
  }
}

And in your AndroidManifest.xml file:

<application
    android:name=".ExampleApplication" // <-- 
    ...
    ...>
</application>

That is all! CrashWoodpecker will automatically show an Activity when your app crash with uncaught exceptions in your debug build.

7BDF054B-21AE-4A66-ACBF-6A51B1A0FA96

Demo apk download: LittleWood.apk

源代码: https://github.com/drakeet/CrashWoodpecker

  1. Pingback: what is new

  2. Pingback: what is new

  3. Pingback: what is new

  4. Pingback: what is new

  5. Pingback: read more

  6. Pingback: read more

  7. Pingback: click here

  8. Pingback: click here

  9. Pingback: click here

  10. Pingback: click here

  11. Pingback: have a peek at these guys

  12. Pingback: have a peek at these guys

  13. Pingback: news

  14. Pingback: navigate to this website

  15. Pingback: this page

  16. Pingback: my response

  17. Pingback: original site

  18. Pingback: check here

  19. Pingback: browse this site

  20. Pingback: read this article

  21. Pingback: Bonuses

  22. Pingback: find this

  23. Pingback: a fantastic read

  24. Pingback: Homepage

  25. Pingback: see it here

  26. Pingback: find more info

  27. Pingback: imp source

  28. Pingback: my company

  29. Pingback: great post to read

  30. Pingback: this website

  31. Pingback: how to get bigger boobs

  32. Pingback: how to get bigger boobs in a week

  33. Pingback: Get More Info

  34. Pingback: useful reference

  35. Pingback: get redirected here

  36. Pingback: my review here

  37. Pingback: click site

  38. Pingback: More about the author

  39. Pingback: check my blog

  40. Pingback: read more

  41. Pingback: sperrys review

  42. Pingback: minigun for sale

  43. Pingback: discover this info here

  44. Pingback: explanation

  45. Pingback: try this web-site

  46. Pingback: you could look here

  47. Pingback: Get the facts

  48. Pingback: More hints

  49. Pingback: why not try these out

  50. Pingback: i thought about this

  51. Pingback: my response

  52. Pingback: browse this site

  53. Pingback: find this

  54. Pingback: a fantastic read

  55. Pingback: Homepage

  56. Pingback: their explanation

  57. Pingback: i thought about this

  58. Pingback: useful reference

  59. Pingback: Sperry boots for women

  60. Pingback: quality article

  61. Pingback: quality article

  62. Pingback: insight

  63. Pingback: where to look

  64. Pingback: what to do

  65. Pingback: continue reading

  66. Pingback: figure out

  67. Pingback: find

  68. Pingback: important

  69. Pingback: read more

  70. Pingback: click here

  71. Pingback: Give Her Makeup.com

  72. Pingback: learn now

  73. Pingback: best news

  74. Pingback: new source

  75. Pingback: best value

  76. Pingback: More hints

  77. Pingback: Clicking Here

  78. Pingback: her latest blog

  79. Pingback: check these guys out

  80. Pingback: official site

  81. Pingback: check this link right here now

  82. Pingback: more news

  83. Pingback: read more

  84. Pingback: click here

  85. Pingback: read more

  86. Pingback: read more

  87. Pingback: read more

  88. Pingback: read more

  89. Pingback: click here

  90. Pingback: click here

  91. Pingback: click here

  92. Pingback: read more

  93. Pingback: click here

  94. Pingback: important source

  95. Pingback: official statement

  96. Pingback: Learn More

  97. Pingback: you could try here

  98. Pingback: you could check here

  99. Pingback: check that

  100. Pingback: More Bonuses

  101. Pingback: her latest blog

  102. Pingback: Visit Website

  103. Pingback: their explanation

  104. Pingback: why not find out more

  105. Pingback: view publisher site

  106. Pingback: check these guys out

  107. Pingback: i thought about this

  108. Pingback: my response

  109. Pingback: a fantastic read

  110. Pingback: imp source

  111. Pingback: useful reference

  112. Pingback: about

  113. Pingback: how to

  114. Pingback: news

  115. Pingback: new website

  116. Pingback: best info

  117. Pingback: read more

  118. Pingback: look here

  119. Pingback: see post

  120. Pingback: pop over to this website

  121. Pingback: Discover More

  122. Pingback: Continued

  123. Pingback: More Bonuses

  124. Pingback: hop over to this website

  125. Pingback: additional hints

  126. Pingback: you can try this out

  127. Pingback: check these guys out

  128. Pingback: look at this site

  129. Pingback: why not try these out

  130. Pingback: original site

  131. Pingback: a fantastic read

  132. Pingback: my company

  133. Pingback: useful reference

  134. Pingback: read more

  135. Pingback: how to

  136. Pingback: interserver coupon

  137. Pingback: hotels in rocky mount nc

  138. Pingback: water slide

  139. Pingback: hotels burlington

  140. Pingback: pickleball ball

  141. Pingback: double glazing windows prices

  142. Pingback: How are contributions made to the 403b account

  143. Pingback: garcinia cambogia extract does it work

  144. Pingback: What you can do with coconut oil

  145. Pingback: Skydiving NYC

  146. 有的异常不能捕捉吧,,比如自定义的控件,因为复制别人的,包名忘了改了,,他不报错,屏幕闪了几次没了。。
    顺道请教下,这东西咋弄的,可以在手机上装一个app。啥原理啊

    • 不好意思,弄错了那不是新的app。就是2个启动页而已,有点傻了

  147. 刚刚把你Git上的代码跑起来了。但是运行会卡死。我先打开Woodpecker,然后缩小,再打开LittleWood,然后点Crash就卡死了。。话说,我也是锤子手机……

    • 确实是啄木鸟兼容性的问题, 已经解决了, 你再试试, 这是我写在 github 的提示…: NOTE: There is a big bug before VERSION 0.9.5, QAQ thank goodness, it has been fixed in version 0.9.5, please update to 0.9.5, or wait for the update …