解决方案 »

  1.   

    这是我的思路:
        标准的文件遍历。
        在遍历过程中定义String或者File parentPath记录当前目录的父目录,然后在当前目录的遍历中检测是否包含图片,一扫描到有图片文件就将parentPath加入到List中。如果你只需要所有包含图片的文件目录的话这样就行。
        如果你还想做成点击listview来层层进入的话那就维护一颗树吧。
      

  2.   

    发我一份吧,谢谢 [email protected]
      

  3.   

    求一份源码[email protected] 万分感激
      

  4.   

    [email protected] 求源码 谢谢了,这个东西我弄了1个多月了,还是真不明白,网上说的都太不靠谱了!
      

  5.   

    麻烦发我一份源码吧!android开发如何用file读出sdcard中含图片的文件夹,并将文件夹显示到listview上???? 
      

  6.   

    [email protected]
    可以发代码给我吗?
      

  7.   

    [email protected]  我也想参考一下
      

  8.   

    求个源码啊,谢谢了,[email protected]
      

  9.   

    [email protected] , 急求份源码,楼主谢了~~~~~
      

  10.   

    [email protected]同求一份啊,楼主分享
      

  11.   

    /**
     * 从SDcard 下扫描所有图片,获取图片list
     * 
     * @param file
     */
    private void getPicList(File file) {
    if (!file.exists())
    return;
    File[] files = file.listFiles();
    if (files == null || files.length == 0)
    return;
    for (int i = 0; i < files.length; i++) {
    if (files[i].isDirectory()) {
    getPicList(files[i]);
    } else if (files[i].isFile()) {
    String filename = files[i].getName();
    if (isPic(filename)) {
    String path = files[i].getAbsolutePath();
    if (path.contains(photoPath)) {
    PicInfo pic = new PicInfo();
    Log.d(TAG, "path is " + path);
    pic.path = path;
    cameraList.add(pic);
    }
    }
    }
    }
    }
      

  12.   

    楼主,求代码 ,求分享   [email protected]
      

  13.   

    [email protected]我也遇到了,求份源码
      

  14.   

    [email protected] 求份源码 感激不尽
      

  15.   

    [email protected]    楼主  急需啊    发个代码给我吧  感激不尽
      

  16.   

    麻烦lz发我一份参考一下吧!多谢!邮箱是:[email protected]
      

  17.   

    给我一份可以吗?邮箱[email protected]
      

  18.   

    [email protected]  求大神源码
      

  19.   

    楼柱,求一份源码!邮箱:[email protected]  3Q
      

  20.   

    楼主,我也要一份  [email protected]   ,谢谢哈
      

  21.   

    [email protected] 楼主好人求源码!
      

  22.   

    [email protected]    感谢楼主能够分享,楼主好人