[android-developers] Re: How to use buildin email intent
Right. You need to set the correct MIME type, in this case message/ rfc822. Anybody know when we're going to start seeing support for sending attachments? It's going to make my life a lot easier when we do. On Nov 17, 8:59 am, Peli [EMAIL PROTECTED] wrote: Your intent is missing the correct type. Have a look here:http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peliwww.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to use buildin email intent
I see, thanks. However, when using Linkify to turn email adresses into mailto: links, I get the same error message. Doesn't that mean that handling email intents simply isn't yet supported? User will probably find it awkward when they cannot send emails when clicking an address, but only through custom buttons configured with correct Intents... On 18 Nov., 15:33, john [EMAIL PROTECTED] wrote: Right. You need to set the correct MIME type, in this case message/ rfc822. Anybody know when we're going to start seeing support for sending attachments? It's going to make my life a lot easier when we do. On Nov 17, 8:59 am, Peli [EMAIL PROTECTED] wrote: Your intent is missing the correct type. Have a look here:http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peliwww.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to use buildin email intent
I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: How to use buildin email intent
Your intent is missing the correct type. Have a look here: http://www.openintents.org/en/node/121 Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, email text); sendIntent.putExtra(Intent.EXTRA_SUBJECT, Subject); sendIntent.setType(message/rfc822); startActivity(Intent.createChooser(sendIntent, Title:)); Peli www.openintents.org On Nov 17, 11:12 am, Matthias [EMAIL PROTECTED] wrote: I have the same problem. Any ideas? On 24 Okt., 20:54, Jake Maui [EMAIL PROTECTED] wrote: I'm trying to use the builtin email intent and so far I haven't found enough information to use it correctly. When I execute the following code, I get the message No applications can perform this action. This happens on emulator as well as real hardware. Can anyone tell me what piece is missing? Thx private OnSelectionHandler onEmailMenu = new OnSelectionHandler() { public void handleSelection() { Intent intent = new Intent(Intent.ACTION_SEND); Bundle bundle=new Bundle(); bundle.putString(Intent.EXTRA_EMAIL , [EMAIL PROTECTED]); bundle.putString(Intent.EXTRA_TEXT , This is a test); startActivity(Intent.createChooser(intent, Send Mail)); } }; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---