Android 全屏图像意图,无删除选项

Android 全屏图像意图,无删除选项,android,Android,目前,我正在使用以下代码全屏显示位图: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(uri, "image/png"); startActivity(intent); 我的问题是,它会在某些设备上打开一个图库,而我只想让用户查看图像,仅此而已。有什么想法吗 谢谢 要详细说明我关于仅使用ImageView的评论: ImageVie

目前,我正在使用以下代码全屏显示位图:

Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(uri, "image/png");
startActivity(intent);
我的问题是,它会在某些设备上打开一个图库,而我只想让用户查看图像,仅此而已。有什么想法吗


谢谢

要详细说明我关于仅使用ImageView的评论:

ImageView v = new ImageView(this);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);
v.setLayoutParams(layoutParams);

getContentView().addView(v);

或者类似的东西。

为什么不直接显示全屏图像视图?