用代码实现哦!谢谢

解决方案 »

  1.   

    网上有android资源管理器或者文件管理器的源代码,里面有实现,你可以看下。
    其实说白了,就是intent和MimeType的使用
      

  2.   

    方法一
    File file=new File("/sdcard/IMG/1.jpg");                                
                    Intent it = new Intent(Intent.ACTION_VIEW);
                    Uri mUri = Uri.parse("file://"+file.getPath());
                    it.setDataAndType(mUri, "image/*");
                    startActivity(it);
      

  3.   

    方法二
       ComponentName componentName=new ComponentName("com.cooliris.media","com.cooliris.media.Gallery");   
                    Intent intent=new Intent();   
                    intent.setComponent(componentName);
                    File file=new File("/sdcard/IMG/1.jpg");
                    Uri mUri = Uri.parse("file://"+file.getPath());
                    intent.setData(mUri);
                    intent.setAction(Intent.ACTION_VIEW);   
                    startActivity(intent);