On Mon, Jun 20, 2011 at 1:30 PM, jul <[email protected]> wrote:
> I'd like to set specific extras (different text, image/no image...) to
> an ACTION_SEND intent according to the app selected in the chooser.
> Basically I'd like to have a long text and an image for an email, just
> the long text for Facebook, and a short text for Twitter... To do so I
> need to intercept the app chosen in the chooser. How can I do that?

You can't.

However, you can create your own "chooser", using data from
PackageManager and queryIntentActivities().

That being said, what you want is unsolvable. There are hundreds of
Twitter clients, probably multiple Facebook clients, etc., and the
names and stuff change constantly.

Instead, you should give the USER the choice of what to send BEFORE
displaying the chooser in the first place. The USER, not you, should
get to decide what to send (long vs. short), what service to send it
through, etc.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2

-- 
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

Reply via email to