使用指定的文件浏览器查看指定文件夹里的图片

来源:互联网 发布:旺宝淘宝收藏软件 编辑:程序博客网 时间:2024/06/04 19:28

上一篇《打开指定文件夹里的图片》的文章 地址 http://blog.csdn.net/s495205/article/details/8966805

我试验了一下代码,是可以直接打开图片,但存在一个问题,只能打开第一张图片,且无法查看后续图片。这里说一种简单的方法,使用指定的文件浏览器(本文中是ES文件浏览器)查看指定文件夹里的图片,代码附上:




Intent intent = new Intent();  intent.setComponent(new ComponentName("com.estrongs.android.pop","com.estrongs.android.pop.view.FileExplorerActivity"));  intent.setData(Uri.fromFile(new File("/mnt/extr_sd/sinolife/clientmanagement/")));  startActivity(intent);