解决方案 »

  1.   

    10w文件。。,这个速度没办法改进吧,你修改下你app的逻辑,边读边显示好了,不要一直卡在那边等待读完了再显示。
      

  2.   

    已修改为滚动加载了。在计算子文件夹数量的时候会内存溢出。
    09-04 11:41:20.116: E/dalvikvm-heap(3817): Out of memory on a 86-byte allocation.
    09-04 11:41:20.119: I/dalvikvm(3817): "pool-1-thread-4" prio=5 tid=23 RUNNABLE
    09-04 11:41:20.119: I/dalvikvm(3817):   | group="main" sCount=0 dsCount=0 obj=0x42560628 self=0x5e7265a8
    09-04 11:41:20.119: I/dalvikvm(3817):   | sysTid=3959 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1584556536
    09-04 11:41:20.119: I/dalvikvm(3817):   | state=R schedstat=( 0 0 0 ) utm=372 stm=159 core=0
    09-04 11:41:20.123: I/dalvikvm(3817):   at java.io.File.listImpl(Native Method)
    09-04 11:41:20.129: I/dalvikvm(3817):   at java.io.File.list(File.java:749)
    09-04 11:41:20.129: I/dalvikvm(3817):   at java.io.File.listFiles(File.java:791)