本文介绍了机器人如何preVIEW的图像,使用从SD卡的文件路径,从我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文件是present在 SD卡/ image.jpg的
我想创建自己的应用程序(活动)。上的一个按钮preSS,需要存储在SD卡的图像使用内置的图像查看器来显示。在$ P $的图像查看器pssing后退按钮,它应该回到我运行的应用程序。

需要一些帮助。

解决方案

 意图photoPickerIntent =新的意图(Intent.ACTION_PICK);
photoPickerIntent.setType(图像/ *);
startActivityForResult(photoPickerIntent,1);
 

这显示code使用从SD卡中的所有图像

File is present in sdcard/image.jpg
I would like to create my own application (activity).On a button press, the image stored in the sdcard needs to be displayed using the built-in image viewer.On pressing the back button from the Image viewer, it should go back to my running application.

Need some help.

解决方案
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 1);

This code use for display all images from your SD card

这篇关于机器人如何preVIEW的图像,使用从SD卡的文件路径,从我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 05:30