How to use built in email application to send email from my application

by Satish » Thu, 11 Mar 2010 20:48:02 GMT


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

--



How to use built in email application to send email from my application

by Satish » Wed, 17 Mar 2010 04:27:01 GMT


 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

--


Sponsored Links


How to use built in email application to send email from my application

by Gulfam » Wed, 17 Mar 2010 14:00:58 GMT


 Hi Satish

Check this working for me:

public void launchEmailActivity(){

                final  Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
                emailIntent .setType("plain/text");
                emailIntent .putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{""});
                emailIntent .putExtra(android.content.Intent.EXTRA_SUBJECT, 
"Test
Subject");
                emailIntent .putExtra(android.content.Intent.EXTRA_TEXT, 
"Testing
email text");
                this.startActivity(Intent.createChooser(emailIntent, "Send
mail..."));
        }

Best Regards,
Gulfam Hassan





--



Other Threads

1. setPadding() in onDraw() causing ListView draw loop

You can call setPadding(), but just don't call it from onDraw(). Why
do you want to call it from onDraw()? It has to be called only once.










-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

2. Changing a Back button press to Home button press

This won't work. You just cannot do this.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

3. Why does my EditText hint have different font spacing?

4. Setting internal storage in the AVD

5. Getting "failed to copy 'content' to '/sdcard/content': Read only file system on donut compilation.

6. GLSurfaceView does not invoke OnKeyDown(...)

7. Don't receive intent