[android-developers] Re: How to use built in email application to send email from my application
Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. Thanks -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use built in email application to send email from my application
Thanks for your reply Kumar, This code used but that action is not On Thu, Mar 11, 2010 at 6:28 PM, Kumar Bibek coomar@gmail.com wrote: Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. Thanks -- 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards $atish Kolawale. +919860767082 -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use built in email application to send email from my application
Thanks for your reply Kumar, This code used but error is that action is not currently supported Thanks Satish On Thu, Mar 11, 2010 at 6:28 PM, Kumar Bibek coomar@gmail.com wrote: Use this code. Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setData(Uri.parse(mailto:t...@gmail.com;)); intent.putExtra(Intent.EXTRA_SUBJECT, Subject); intent.putExtra(Intent.EXTRA_TEXT, this is the body of the mail); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); Thanks and Regards, Kumar Bibek On Mar 11, 5:47 pm, Satish satishkolaw...@gmail.com wrote: Hello, I want is to automatically compose an e-mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. Thanks -- 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 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards $atish Kolawale. +919860767082 -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to use built in email application to send email from my application
$atish kolawale wrote: Thanks for your reply Kumar, This code used but that action is not Try this: http://www.androidguys.com/2009/11/02/a-call-to-action-action_send-that-is/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in US: 14-18 June 2010: http://bignerdranch.com -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use built in email application to send email from my application?
This doesn't seem to work for regular text file. I have tried giving mime types of */*, text/plain etc. Anyone knows how to attach text files using Gmail? Doesn't even work from Gmail app. On Dec 12 2008, 12:08 pm, Peli peli0...@googlemail.com wrote: I'd love to see that one extra line in your example that shows how to add an image fileattachmentwith the image file stored on the SD card. :-) Oh, sorry, you said image. sendIntent.setType(image/png); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/ mygirlfriend.png); I'm sure the next question is how to have both, subject andattachment, but I'll leave this as an exercise to the reader :-) Peli --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Is there a way to actually send the email without having the user choose an email client and hitting send? (without using a network connection and having a server do it on the back end) On Jan 3, 7:11 pm, Abraham Lincoln mehtabhave...@gmail.com wrote: This doesn't seem to work for regular text file. I have tried giving mime types of */*, text/plain etc. Anyone knows how to attach text files using Gmail? Doesn't even work from Gmail app. On Dec 12 2008, 12:08 pm, Peli peli0...@googlemail.com wrote: I'd love to see that one extra line in your example that shows how to add an image fileattachmentwith the image file stored on the SD card. :-) Oh, sorry, you said image. sendIntent.setType(image/png); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/ mygirlfriend.png); I'm sure the next question is how to have both, subject andattachment, but I'll leave this as an exercise to the reader :-) Peli --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
hey please check this link.http://androidguys.com/?p=3100#comment-5168 once again mark has proved himself that he is always dere to help android guys. Thanks mark On Sat, Dec 13, 2008 at 1:38 AM, Peli peli0...@googlemail.com wrote: I'd love to see that one extra line in your example that shows how to add an image file attachment with the image file stored on the SD card. :-) Oh, sorry, you said image. sendIntent.setType(image/png); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/ mygirlfriend.png); I'm sure the next question is how to have both, subject and attachment, but I'll leave this as an exercise to the reader :-) Peli --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Fabulous Peli! Thank you. I found the online documentation a bit intimidating at first, but this example gives a great flying start. Regards On Dec 12, 9:08 pm, Peli peli0...@googlemail.com wrote: I'd love to see that one extra line in your example that shows how to add an image file attachment with the image file stored on the SD card. :-) Oh, sorry, you said image. sendIntent.setType(image/png); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/ mygirlfriend.png); I'm sure the next question is how to have both, subject and attachment, but I'll leave this as an exercise to the reader :-) Peli --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
dileep singh wrote: hey please check this link.http://androidguys.com/?p=3100#comment-5168 once again mark has proved himself that he is always dere to help android guys. Thank Peli, not me -- I just added some more words around the research he and the OpenIntents team did. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Same with me. Basically all I want is to automatically compose an e- mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. My purpose is to let the user e-mail a camera snapshot for remote OCR analysis. The OCR back-end is already fully functional, linking to the WeOCR servers in Japan, and is platform-neutral on the user side, that is, works with any platform (Windows, Symbian, ...), but it is rather inconvenient for the user to manually compose the e- mail and figure out which snapshot from what folder to attach. Thanks On Dec 12, 11:33 am, dileep singh discover.dile...@gmail.com wrote: Thanks peli Do u have some sample code?tht will of great help for me. I am complete fresher. Waiting for ur reply Thanks DILU On Fri, Dec 12, 2008 at 3:56 PM, Peli peli0...@googlemail.com wrote: http://www.openintents.org/en/node/121 Peli www.openintents.org On Dec 12, 7:43 am, dilu discover.dile...@gmail.com wrote: Hi I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks dilu --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
http://www.openintents.org/en/node/121 Peli www.openintents.org On Dec 12, 7:43 am, dilu discover.dile...@gmail.com wrote: Hi I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks dilu --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
But i think there are very few link available on sending email .I think a lot of guys r facing this problem.But we are not able to find the correct solution for this.I f anyone know then please post it here Thanks. On Fri, Dec 12, 2008 at 4:21 PM, blindfold seeingwithso...@gmail.comwrote: Same with me. Basically all I want is to automatically compose an e- mail with a subject line, recipient address and an image attachment, and an e-mail app should then pop up with this automatically composed message, to let the user decide whether to send, edit or discard the message. My purpose is to let the user e-mail a camera snapshot for remote OCR analysis. The OCR back-end is already fully functional, linking to the WeOCR servers in Japan, and is platform-neutral on the user side, that is, works with any platform (Windows, Symbian, ...), but it is rather inconvenient for the user to manually compose the e- mail and figure out which snapshot from what folder to attach. Thanks On Dec 12, 11:33 am, dileep singh discover.dile...@gmail.com wrote: Thanks peli Do u have some sample code?tht will of great help for me. I am complete fresher. Waiting for ur reply Thanks DILU On Fri, Dec 12, 2008 at 3:56 PM, Peli peli0...@googlemail.com wrote: http://www.openintents.org/en/node/121 Peli www.openintents.org On Dec 12, 7:43 am, dilu discover.dile...@gmail.com wrote: Hi I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks dilu --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
dilu wrote: I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks Peli has saved our bacon yet again: http://www.openintents.org/en/node/121 -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Thanks peli Do u have some sample code?tht will of great help for me. I am complete fresher. Waiting for ur reply Thanks DILU On Fri, Dec 12, 2008 at 3:56 PM, Peli peli0...@googlemail.com wrote: http://www.openintents.org/en/node/121 Peli www.openintents.org On Dec 12, 7:43 am, dilu discover.dile...@gmail.com wrote: Hi I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks dilu --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Do u have some sample code? Use the scroll-bar of your browser! From that link: http://www.openintents.org/en/node/121 I copy and paste it here: 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:)); If you want to know more, it helps to read the documentation ;-) http://code.google.com/android/reference/android/content/Intent.html#ACTION_SEND Peli On Dec 12, 11:33 am, dileep singh discover.dile...@gmail.com wrote: Thanks peli Do u have some sample code?tht will of great help for me. I am complete fresher. Waiting for ur reply Thanks DILU On Fri, Dec 12, 2008 at 3:56 PM, Peli peli0...@googlemail.com wrote: http://www.openintents.org/en/node/121 Peli www.openintents.org On Dec 12, 7:43 am, dilu discover.dile...@gmail.com wrote: Hi I wanna to send email from my application .I want to use built in email application to send mail from my application.So, can any one provide me some sample code or link for sending email using built in email application?Any advice on this topic is most welcome. Please reply.I am waiting for u people to reply. Thanks dilu --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
I'd love to see that one extra line in your example that shows how to add an image file attachment with the image file stored on the SD card. :-) On Dec 12, 3:42 pm, Peli peli0...@googlemail.com wrote: From that link:http://www.openintents.org/en/node/121I copy and paste it here: 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:)); --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
Use the source, Luke! OI File Manager ( http://www.openintents.org/en/node/159 ) can do this, so there is a good chance that you will find enlightment there :-) http://code.google.com/p/openintents/source/browse/trunk/FileManager/src/org/openintents/filemanager/FileManagerActivity.java It is actually 2 extra lines: sendIntent.setType(audio/mp3); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/mysong.mp3); I've now posted this on the OI page as well: http://www.openintents.org/en/node/121 Peli www.openintents.org On 12 Dez., 20:10, blindfold seeingwithso...@gmail.com wrote: I'd love to see that one extra line in your example that shows how to add an image file attachment with the image file stored on the SD card. :-) On Dec 12, 3:42 pm, Peli peli0...@googlemail.com wrote: From that link:http://www.openintents.org/en/node/121Icopy and paste it here: 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:)); --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use built in email application to send email from my application?
I'd love to see that one extra line in your example that shows how to add an image file attachment with the image file stored on the SD card. :-) Oh, sorry, you said image. sendIntent.setType(image/png); sendIntent.putExtra(Intent.EXTRA_STREAM, file:///sdcard/ mygirlfriend.png); I'm sure the next question is how to have both, subject and attachment, but I'll leave this as an exercise to the reader :-) Peli --~--~-~--~~~---~--~~ 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 android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---