Crash异常
sparkhuu
3年多安卓开发经验,一年多安卓带队经验
展开
-
使用CrashHandler来捕获Crash异常
对于android 中未捕获到的异常可以通过UnCaughtExceptionHandler 来进行捕获/** * Implemented by objects that want to handle cases where a thread is being * terminated by an uncaught exception. Upon such terminatio原创 2016-09-19 11:07:27 · 2218 阅读 · 0 评论 -
Bitmap加载防止出现OOM
bitmap加载的四种方式有 bitmapfactory.decodefile, bitmapfactory.decoderes,bitmapfactory.decodestream,bitmapfactory.decodebytearray, 如果原图加载进来,如果设计师给到的图片过大,可能导致oom,所以我们要对其进行处理,一般通过 BitmapFactory.Op原创 2016-10-25 10:10:08 · 524 阅读 · 0 评论 -
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
http://www.androiddesignpatterns.com/2013/08/fragment-transaction-commit-state-loss.html原创 2016-11-09 14:53:27 · 295 阅读 · 0 评论 -
Android Crash Report - Native crash at /system/lib/libc.so caused by webview
hine: ConnectedState (when=-2ms what=131155 arg1=657!CMD_RSSI_POLL 657 0 “HDFin-Tech-1” 38:22:d6:94:88:30 rssi=-70 f=2437 sc=60 link=54 tx=10.4, 0.0, 0.0 rx=9.2 bcn=0 [on:0 tx:0 rx:0 period:2578] fro原创 2016-12-22 10:59:03 · 6363 阅读 · 0 评论