I am trying to filter and process intentions with android.intent.action.SEND actions in one of my Service s. I wrote the following in AndroidManifest.xml :
<service android:name=".app.ScreamerService" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.SEND"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="*/*"/> </intent-filter> </service>
Now the problem is that I do not see my application in the list of options "share via" when, for example, I try to share a web page from a browser or with a contact from the contact list. If, however, I move the intent filters to the main <activity> (instead of <service> ), the name of my application and the do icon are displayed in the list of share via options.
What am I doing wrong here? Can't submit the SEND action to the service?
android android-intent android-manifest android-sharing intentfilter
smichak
source share