I have successfully added the following code to my
AndroidManifest.xml, so that my activity is shown as a option for
sharing images from the gallery application.
</activity>
<activity android:name="MyActivity"
android:theme="@android:style/Theme.NoTitleBar"
>
<intent-filter android:label="My Activity">
<action android:name="android.intent.action.SEND" />
<category
android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
</activity>
My question is that is it possible to add an intent-filter in code,
for example from a background service? I would like to be able to
offer the user the ability to share via my activity only if some other
conditions are met.
Thanks,
P
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---