6
回答
不断上滑下滑listview做测试,报了一大堆错.
【腾讯云】学生服务器套餐10元/月 >>>   

如题,错误如下:

09-21 18:39:07.754: I/dalvikvm(15601):   at android.os.Handler.handleCallback(Handler.java:733)
09-21 18:39:07.754: I/dalvikvm(15601):   at android.os.Handler.dispatchMessage(Handler.java:95)
09-21 18:39:07.754: I/dalvikvm(15601):   at android.os.Looper.loop(Looper.java:136)
09-21 18:39:07.754: I/dalvikvm(15601):   at android.app.ActivityThread.main(ActivityThread.java:5047)
09-21 18:39:07.754: I/dalvikvm(15601):   at java.lang.reflect.Method.invokeNative(Native Method)
09-21 18:39:07.754: I/dalvikvm(15601):   at java.lang.reflect.Method.invoke(Method.java:515)
09-21 18:39:07.754: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-21 18:39:07.754: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
09-21 18:39:07.754: I/dalvikvm(15601):   at dalvik.system.NativeStart.main(Native Method)
09-21 18:39:07.794: I/dalvikvm-heap(15601): Clamp target GC heap from 137.808MB to 128.000MB
09-21 18:39:07.794: D/dalvikvm(15601): GC_FOR_ALLOC freed <1K, 15% free 111767K/131072K, paused 34ms, total 34ms
09-21 18:39:07.794: I/dalvikvm-heap(15601): Forcing collection of SoftReferences for 781936-byte allocation
09-21 18:39:07.834: I/dalvikvm-heap(15601): Clamp target GC heap from 137.808MB to 128.000MB
09-21 18:39:07.834: D/dalvikvm(15601): GC_BEFORE_OOM freed 0K, 15% free 111767K/131072K, paused 44ms, total 44ms
09-21 18:39:07.834: E/dalvikvm-heap(15601): Out of memory on a 781936-byte allocation.
09-21 18:39:07.834: I/dalvikvm(15601): "main" prio=5 tid=1 RUNNABLE
09-21 18:39:07.834: I/dalvikvm(15601):   | group="main" sCount=0 dsCount=0 obj=0x41c4ce58 self=0x41c3b900
09-21 18:39:07.834: I/dalvikvm(15601):   | sysTid=15601 nice=0 sched=0/0 cgrp=apps handle=1074544980
09-21 18:39:07.834: I/dalvikvm(15601):   | state=R schedstat=( 185854282541 29188159961 240637 ) utm=16370 stm=2215 core=3
09-21 18:39:07.834: I/dalvikvm(15601):   at android.graphics.Bitmap.nativeCreate(Native Method)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.graphics.Bitmap.createBitmap(Bitmap.java:819)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.graphics.Bitmap.createBitmap(Bitmap.java:779)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.buildDrawingCache(View.java:13636)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.getDrawingCache(View.java:13491)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14184)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.widget.ListView.drawChild(ListView.java:3363)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.widget.AbsListView.dispatchDraw(AbsListView.java:2467)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.widget.ListView.dispatchDraw(ListView.java:3358)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14602)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.widget.AbsListView.draw(AbsListView.java:3869)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.834: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.widget.FrameLayout.draw(FrameLayout.java:472)
09-21 18:39:07.844: I/dalvikvm(15601):   at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2326)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2535)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl.draw(ViewRootImpl.java:2448)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2292)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1922)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1039)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5648)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.Choreographer.doCallbacks(Choreographer.java:574)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.Choreographer.doFrame(Choreographer.java:544)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.os.Handler.handleCallback(Handler.java:733)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.os.Handler.dispatchMessage(Handler.java:95)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.os.Looper.loop(Looper.java:136)
09-21 18:39:07.844: I/dalvikvm(15601):   at android.app.ActivityThread.main(ActivityThread.java:5047)
09-21 18:39:07.844: I/dalvikvm(15601):   at java.lang.reflect.Method.invokeNative(Native Method)
09-21 18:39:07.844: I/dalvikvm(15601):   at java.lang.reflect.Method.invoke(Method.java:515)
09-21 18:39:07.844: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-21 18:39:07.844: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
09-21 18:39:07.844: I/dalvikvm(15601):   at dalvik.system.NativeStart.main(Native Method)
09-21 18:39:07.874: I/dalvikvm-heap(15601): Clamp target GC heap from 137.808MB to 128.000MB
09-21 18:39:07.874: D/dalvikvm(15601): GC_FOR_ALLOC freed <1K, 15% free 111767K/131072K, paused 34ms, total 34ms
09-21 18:39:07.874: I/dalvikvm-heap(15601): Forcing collection of SoftReferences for 781936-byte allocation
09-21 18:39:07.924: I/dalvikvm-heap(15601): Clamp target GC heap from 137.808MB to 128.000MB
09-21 18:39:07.924: D/dalvikvm(15601): GC_BEFORE_OOM freed 0K, 15% free 111767K/131072K, paused 43ms, total 43ms
09-21 18:39:07.924: E/dalvikvm-heap(15601): Out of memory on a 781936-byte allocation.
09-21 18:39:07.924: I/dalvikvm(15601): "main" prio=5 tid=1 RUNNABLE
09-21 18:39:07.924: I/dalvikvm(15601):   | group="main" sCount=0 dsCount=0 obj=0x41c4ce58 self=0x41c3b900
09-21 18:39:07.924: I/dalvikvm(15601):   | sysTid=15601 nice=0 sched=0/0 cgrp=apps handle=1074544980
09-21 18:39:07.924: I/dalvikvm(15601):   | state=R schedstat=( 185933179777 29194177985 240740 ) utm=16377 stm=2216 core=3
09-21 18:39:07.924: I/dalvikvm(15601):   at android.graphics.Bitmap.nativeCreate(Native Method)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.graphics.Bitmap.createBitmap(Bitmap.java:819)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.graphics.Bitmap.createBitmap(Bitmap.java:779)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.buildDrawingCache(View.java:13636)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.getDrawingCache(View.java:13491)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14184)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.widget.ListView.drawChild(ListView.java:3363)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.widget.AbsListView.dispatchDraw(AbsListView.java:2467)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.widget.ListView.dispatchDraw(ListView.java:3358)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14602)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.widget.AbsListView.draw(AbsListView.java:3869)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14378)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14376)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.drawChild(ViewGroup.java:3103)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2940)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.View.draw(View.java:14496)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.widget.FrameLayout.draw(FrameLayout.java:472)
09-21 18:39:07.924: I/dalvikvm(15601):   at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2326)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2535)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl.draw(ViewRootImpl.java:2448)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2292)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1922)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1039)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5648)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.Choreographer.doCallbacks(Choreographer.java:574)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.Choreographer.doFrame(Choreographer.java:544)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.os.Handler.handleCallback(Handler.java:733)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.os.Handler.dispatchMessage(Handler.java:95)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.os.Looper.loop(Looper.java:136)
09-21 18:39:07.924: I/dalvikvm(15601):   at android.app.ActivityThread.main(ActivityThread.java:5047)
09-21 18:39:07.924: I/dalvikvm(15601):   at java.lang.reflect.Method.invokeNative(Native Method)
09-21 18:39:07.924: I/dalvikvm(15601):   at java.lang.reflect.Method.invoke(Method.java:515)
09-21 18:39:07.924: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
09-21 18:39:07.924: I/dalvikvm(15601):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
09-21 18:39:07.924: I/dalvikvm(15601):   at dalvik.system.NativeStart.main(Native Method)
09-21 18:39:07.964: I/dalvikvm-heap(15601): Clamp target GC heap from 137.808MB to 128.000MB
09-21 18:39:07.964: D/dalvikvm(15601): GC_FOR_ALLOC freed <1K, 15% free 111767K/131072K, paused 34ms, total 34ms

谁遇到过?帮忙看看.

举报
bobJiao
发帖于3年前 6回/196阅
共有6个答案 最后回答: 3年前
Out of memory错误,应该是你使用了大量的图片,而且图片比较大。使用图片加载库来加载网络图片,本地图片最好处理一下。

引用来自“FancyJyl”的评论

Out of memory错误,应该是你使用了大量的图片,而且图片比较大。使用图片加载库来加载网络图片,本地图片最好处理一下。

我使用的图片加载库是volleyNetworkImageView控件,他有个方法是setImageUrl(url),再使用他的BitmapLruImageCache类缓存;这些使用会有bug吗?

我现在需不需要怀疑这个volley的依赖包?

--- 共有 1 条评论 ---
NextLife加载图片的话用UniversalImageLoader或Picasso库,不建议用Volley。用的话最好保持项目中唯一一个Volley的RequestQueue,参考http://m.blog.csdn.net/blog/hlglinglong/42455637 3年前 回复
ListView的adapter中的getview有可能没有使用组件复用,每个item都是new出来的,那样的话,数据量比较大的话,就会出现内存溢出,导致程序崩溃

引用来自“bobJiao”的评论

引用来自“FancyJyl”的评论

Out of memory错误,应该是你使用了大量的图片,而且图片比较大。使用图片加载库来加载网络图片,本地图片最好处理一下。

我使用的图片加载库是volleyNetworkImageView控件,他有个方法是setImageUrl(url),再使用他的BitmapLruImageCache类缓存;这些使用会有bug吗?

我现在需不需要怀疑这个volley的依赖包?

 @FancyJyl : 我看了项目中的RequestQueue是单例的,Volley是不是不需要手动释放bitmap,我翻遍了Volley的源码,没有释放bitmap的代码,觉着不用的时候应该及时释放掉,算是优化项目代码的一个点吧。而google给出的Volley没有这一点优化完全靠GC去在某个时刻释放,是google在Volley上的偷懒还是留待程序员自己去搞还是google很信任他的dalvik,但是程序有可能即将塞满内存,gc还没启动怎么办?我想林纳斯骂GMAIL应该是有些道理的。
顶部