Those apps may not have handled ACTION_SEND in 1.1. This has nothing to do with the platform API level, and everything to do with the capabilities of the various applications that are current installed. The platform knows -nothing- about ACTION_SEND vs. ACTION_VIEW or whatever other action -- it just looks for installed applications that can do what you are requesting.
On Tue, Sep 1, 2009 at 9:39 AM, JKrapp <[email protected]> wrote: > > Hi, > thanks for the reply :) > But it's not clear to me why the emulator 1.1, with a running email > and text messages clients (the default ones) , doesn't handle the > intent ACTION_SEND, while the Emulator 1.5 does it, with the same > clients. > Does it mean that smathphones with Android platform API level 2 don't > handle the intent ACTION_SEND by default..? I' am just testing the > application on the software emulator... > > Best Regards > > On 1 Set, 02:21, Dianne Hackborn <[email protected]> wrote: > > It's just a matter of what applications are installed in the image that > > handle the intent. If there is nothing that handles it, well then there > is > > nothing that handles it. > > > > > > > > > > > > On Mon, Aug 31, 2009 at 5:00 PM, JKrapp <[email protected]> wrote: > > > > > Hello, > > > I developed an application using Android SDK 1.5_r2, with API level 2 > > > (1.1). > > > When I use the Intent ACTION_SEND with an emulator target API level 3 > > > (1.5) I have no problems, and I can choose to send the message between > > > email or SMS. On the contrary with an emulator target API level 2 > > > (1.1) I got the message "No application can perform this action". I > > > configured and tested in both targets the same email account. > > > Any ideas?! > > > > > Thanks!! > > > > > Here is the snippet of code: > > > > > Intent sendIntent = new Intent(Intent.ACTION_SEND); > > > sendIntent.putExtra(Intent.EXTRA_TEXT, "my > > > message"); > > > sendIntent.setType("text/plain"); > > > try { > > > > > startActivity(Intent.createChooser(sendIntent,"Title")); > > > } catch > (android.content.ActivityNotFoundException > > > ex) { > > > showDialog(ALERT_MSG_SENT_ERROR); > > > } > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

