Send email programmatically using user account

by Jay-andro » Tue, 02 Dec 2008 01:57:03 GMT


Sponsored Links
 I want to be able to send an email out of my app, based on the user
pressing a button on my app's Activity. The email needs to be sent
automatically by the application upon button press, i.e. I dont want
to show another email form to the user. And the email should be sent
***using the user's default email account on the phone*** not an email
account that I hardcode into my app. And I dont want to have the user
key in their email credentials into my app's configuration, I just
want to be able to call some android api and say "send this email with
this subject and body to this email address, using the default account
that the user has set up on the phone".

Is this possible? If so, how?

thanks
Jay
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Setting Wallpaper

Hi all, I've asked this before but never got a useful answer.

I'm setting wallpaper as follows:

InputStream stream = resources.openRawResource(myResource);

getApplicationContext().setWallpaper(stream);

It works, but the image doesn't fit the screen. Is there a way to
force the image to fit the screen, or is this down to differences in
device types? Are wallpapers specific to each advice depending upon
the resolution and screen dimensions? Am I wasting my time trying to
make a single image available for the wallpaper?

-- 

2. How to actually see log messages in ADT, or anywhere for that matter?

I've deployed an app to my device that calls "Log.v(String, String)".
I'm using the ADT.  I have the "LogCat" view showing.

I step over the line of code that calls "Log.v()".  Nothing appears in
the LogCat view.

I haven't added any filters.  I've tried clicking the "V" toggle
button in the LogCat view, but that makes no difference.

It appears that I'm supposed to set the log level of the device. There
appears to be no way to do that from the ADT.  However, looking at the
various short articles discussing this, I believe that doing this from
the shell is supposed to do it:

  ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE

Where my tag is "SNAPSHOT".  I ran this, and it returned to the prompt
without showing the usage info, so I assume it at least recognized my
input.

The line of code that is executed is this:

Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");

This line doesn't show up in the LogCat view.

What am I missing?

-- 

3. Terimakasih ya.. OOT : Happy Birthday Suhi Enya

4. How to block a BufferedReader when no input is available?

5. Android 2.3 Gingerbread for Nexus One & Galaxy S

6. Android 2.1 bermasalah? Atau sony tdk kompatibel dgn 2.1?

7. [WTA]LCD Milestone Bermasalah