点击imageview在Android上打开Gallery中的图像

点击imageview在Android上打开Gallery中的图像,android,android-intent,android-gallery,android-image,Android,Android Intent,Android Gallery,Android Image,我正在制作一个应用程序,在单个活动中显示图像。 Im使用json提要获取图像的url,它通过lazyloader函数下载图像,然后在ImageView中显示 我需要创建的是,当您点击imageView时,图像将显示在标准的android图像库中 我该如何做到这一点?我试过各种各样的方法,但都没能奏效 请帮帮我,伙计们 谢谢您可以使用下面的代码启动图像查看器。Uri是要启动的文件Uri Intent intent = new Intent(); intent.setAction(android.

我正在制作一个应用程序,在单个活动中显示图像。 Im使用json提要获取图像的url,它通过lazyloader函数下载图像,然后在ImageView中显示 我需要创建的是,当您点击imageView时,图像将显示在标准的android图像库中

我该如何做到这一点?我试过各种各样的方法,但都没能奏效

请帮帮我,伙计们


谢谢

您可以使用下面的代码启动图像查看器。Uri是要启动的文件Uri

Intent intent = new Intent(); 
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setData(uri); 
activity.startActivity(intent);

标准图库表示设备中的默认图库?是。。。查看图像的默认库感谢您的回答。但是如何获取文件URI?