i want to use a broadcast receiver for "implicit intents" who use the type ACTION_SEND.
It's still very basic but anyway my app/receiver already does not show up, no matter which app's "share menu" i try.
excerpt from AndroidManifest.xml:
<receiver
android:name=".SaveReceiver" >
<intent-filter
android:icon="@drawable/ic_launcher"
android:label="YourDrive" >
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter
android:icon="@drawable/ic_launcher"
android:label="YourDrive" >
<action android:name="android.intent.action.SEND_MULTIPLE" />
</intent-filter>
</receiver>
I've tried setting a mimeType, but nothing helps. Do I have to set a specific mimeType or can i just check it later on (via Java code when handling the content)? What am I doing wrong, so that my app doesn't show up in "Share menus" of all apps...
Thanks in advance.
ACTION_SEND
is an activity action, not a broadcast action. You cannot pick upstartActivity()
calls with aBroadcastReceiver
.You are not implementing an activity.
http://developer.android.com/training/sharing/receive.html