我正在写一个使用相机的应用程序。我希望让用户能够用线条和文本注释生成的图像,并且我想向用户提供他们可以使用的适当图像编辑应用程序的列表,但我遇到了这些问题: 1并非所有的图像编辑工作的应用程序出现在列表中,当我执行这个代码:教程/参考启动ACTION_EDIT与图像和返回图像
editIntent = new Intent();
editIntent.setAction(Intent.ACTION_EDIT);
Uri imageToEditUri = selectedPhotoLocation; // Uri of existing photo
String imageToEditMimeType = "image/*";
editIntent.setDataAndType(imageToEditUri, imageToEditMimeType);
startActivityForResult(Intent.createChooser(editIntent,"Edit Image"), IMPLICIT_EDIT_IMAGE);
Is there a way to get a list of apps that will respond to Intent.ACTION_EDIT?
2. PS Express是唯一的应用程序,我发现一个返回data.getDate的editted图像的URI() Uri返回到OnActivityResult(),用户被强制保存的其他应用程序,记住位置,然后重新选择已编辑的图像。
Is there a way to know what apps return the Uri of the image to OnActivityResult()
您需要将其余的信息(例如'Uri',MIME类型)添加到'Intent'中才能使用。 – CommonsWare 2012-07-23 15:33:42