Reputation: 946
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
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