Shachar Weis
Shachar Weis

Reputation: 946

How to write an Android share "plugin"?

I want to add my app into the share dialog in Android. So that the user can select an image and "share" it with my application, which would do some modifications before emailing it.

Any ideas how to where to start?

Upvotes: 3

Views: 841

Answers (1)

Michell Bak
Michell Bak

Reputation: 13242

You need to add an intent-filter to your application manifest, that allows it to handle objects of the MIME type image/jpeg.

Your application then receives a Uri to the file, and you can use that Uri to modify the image, as requested.

There's a lot about it on the Android developer site, including code samples: http://developer.android.com/guide/topics/intents/intents-filters.html

Upvotes: 8

Related Questions