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);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---