• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Camera/Gallery Plugin

eric0213

Lurker
I want to create a new app that's a plugin for the camera or gallery but I'm unsure how to get my app into the list of of apps in the gallery.

After you take picture, if you review it, there is a list of apps that you can do stuff with the picture like Facebook, email, PicSay, etc. This list of apps can also be accessed in the gallery by clicking on the icon that looks like binary tree on its side with three nodes (a dot on the left with two lines coming out heading right at angles up and down connecting to two more dots).

I'm trying to figure out how to get the app I'm writing to show up in this list. The problem is, I don't know what this is called, so I haven't been able to search on the correct terms.

Thanks
 
It's not a plugin per se. This ties into the wonderful concept of intents in Android.

Basically Gallery asks Android for all the components installed on the device that can send images.

So you need an activity in your application with the following intent filter.
Code:
<intent-filter> 
    <action android:name="android.intent.action.SEND"/> 
    <category android:name="android.intent.category.DEFAULT"/> 
    <data android:mimeType="image/*"/>
</intent-filter>


I found this "tutorial": http://eggie5.com/8-hook-share-picture-via-menu-android
 
That makes sense. And I learned that that binary search tree looking icon means share; sharing's more practical than a BST I suppose. Just got my first Android phone a month ago, so I'm really new to this. Watched a few videos and read several articles, but until you learn the jargon, it's tough to find answers to specific questions. But then awesome people like you, jiminaus, help out the uninformed.

Thanks for the lesson and thanks also for the link, that'll come in handy!
 
Back
Top Bottom