我正在寫一個使用相機的應用程序。我希望讓用戶能夠用線條和文本註釋生成的圖像,並且我想向用戶提供他們可以使用的適當圖像編輯應用程序的列表,但我遇到了這些問題: 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