
There are lots of other types you can receive, including audio, video, message, and application. You can optionally specify particular text or image types. This indicates that the app will receive any text or image type. Next we need to indicate the MIME types the app is going to receive: This tells Android that when other apps launch a SEND Intent this app may receive what is being shared. Inside the new element, add an Action element specifying the SEND Intent Action:

By adding another Intent Filter element, we are specifying additional options for launching the app. This is where we define the Actions that can launch the app - the existing Intent Filter specifying the normal options for when the user launches from the homescreen or device application menu. Find the section containing your app's main Activity - you should see an Intent Filter element there already, indicating MAIN action and LAUNCHER category.Īfter the existing Intent Filter element, inside the main Activity element, add another Intent Filter: Open it in Eclipse and switch to the XML editor tab. In order for your app to appear in the chooser list presented when the user attempts to share data from another app, you need to alter the Project Manifest file. Eclipse should create Activity and layout files for your app.
