调用一幅图片的查看器

   String path = "/mnt/sdcard/aaa.jpg";
        File a = new File(path);
       // getHttpBitmap("http://192.168.200.44/a/1.jpg");
        //
        Intent intent = new Intent();
        intent.setAction(android.content.Intent.ACTION_VIEW);
        intent.setDataAndType(Uri.fromFile(a), "image/*");
        startActivity(intent);

posted @ 2011-11-24 17:08  郑文亮  阅读(260)  评论(0编辑  收藏  举报