This still doesn't work, as mark points out. You have to instead create your own chooser.
Kris On Jan 13, 2013 12:54 AM, "William Ferguson" <[email protected]> wrote: > Thanks Joman, exactly what I was after. > > @Kristopher the use case is simple: I want to offer clients the ability to > share using the standard Android mechanism and I want to provide a sharing > end point myself. But for commercial reasons my end point is only > appropriate if the Intent comes from within my app. Ie it shouldn't be > available from within other apps. > > William > > On Sunday, January 13, 2013 4:12:39 PM UTC+10, Joman Chu wrote: >> >> Does android:exported=false do what you want? See >> http://developer.android.**com/guide/topics/manifest/** >> activity-element.html#exported<http://developer.android.com/guide/topics/manifest/activity-element.html#exported> >> >> >> On Sun, Jan 13, 2013 at 12:38 AM, William Ferguson < >> [email protected].**au> wrote: >> >>> I have an Activity that responds to the ACTION_SEND Intent. Is there any >>> way for me to be able to specify the IntentFilter such that the Activity is >>> only displayed by the IntentChooser when it has been called from within my >>> app? >>> >>> Ie I want the **SendIntentResponderActivity displayed as a viable >>> recipient of ACTION_SEND, but only if I am the one that issued the Intent. >>> NB displaying my Activity shouldn't stop other standard responders (such as >>> Gmail etc) from also being displayed. >>> >>> <activity android:name=".**SendIntentResponderActivity"> >>>> <intent-filter> >>>> <action android:name="android.intent.**action.SEND"/> >>>> <category android:name="android.intent.**category.DEFAULT"/> >>>> <data android:mimeType="text/plain"/**> >>>> </intent-filter> >>>> </activity> >>> >>> >>> >>> >>>> final Intent shareIntent = new Intent(Intent.ACTION_SEND); >>>> shareIntent.putExtra(Intent.**EXTRA_SUBJECT, subject); >>>> shareIntent.putExtra(Intent.**EXTRA_TEXT, content); >>>> final Intent chooserIntent = Intent.createChooser(**shareIntent, >>>> "Share via")); >>>> context.startActivity(**chooserIntent); >>> >>> >>> William >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-d...@**googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+**[email protected] >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >> >> >> -- > 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 -- 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

