Tutorial / link to run ACTION_EDIT with image and reverse image

I am writing an application using a camera. I want me to want users to be able to annotate the resulting image with lines and text. And I would like to provide the user with a list of suitable image editing applications that they can use, but I encounter these problems: 1. Not all image editing applications appear in the list when this code is executed:

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 is the only application I have found that returns the Uri of the resized image in data.getDate (). Uri returns to OnActivityResult (), with other applications that the user is forced to save, remember the location, and reselect the modified image.

 Is there a way to know what apps return the Uri of the image to OnActivityResult() 
+4
source share
2 answers

Not all image editing applications appear on the list when this code is executed.

Just because the application implements image editing does not necessarily mean that it is configured to allow third parties to refer to their image editing actions.

Is there a way to get a list of applications that will respond to Intent.ACTION_EDIT?

If you mean that you want to do this programmatically at runtime, see Jedalil's answer.

Is there a way to find out which applications return Uri images in OnActivityResult ()

No, except for those applications that have documentation on how developers should integrate with them.

+4
source

First question:
try queryIntentActivities

 Intent editIntent = new Intent(android.content.Intent.ACTION_EDIT); List<ResolveInfo> resInfo = getPackageManager().queryIntentActivities(editIntent, 0); 
+3
source

All Articles