Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old January 9th, 2012, 12:16 PM   #1 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default Camera/Gallery Plugin

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

eric0213 is offline  
Reply With Quote
Sponsors
Old January 9th, 2012, 03:24 PM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

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
jiminaus is offline  
Reply With Quote
The Following 2 Users Say Thank You to jiminaus For This Useful Post:
eric0213 (January 9th, 2012), Shai-Soft (January 9th, 2012)
Old January 9th, 2012, 04:28 PM   #3 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 2
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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!
eric0213 is offline  
Reply With Quote
Reply

Bookmarks

Tags
app, camera, gallery


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo