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. Disable sound effects on Spinner

Hi, I have to disable the "click" sound on all my interface, but I
can't get it to work on Spinner items. No matter what I do, I always
get the sound when I select a item on a Spinner:

That's what I tried:

<Spinner android:id="@+id/selecao_ordem"
   ***
   android:soundEffectsEnabled="false" />

My spinner item:

<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/
android"
    android:id="@android:id/text1"
    style="?android:attr/spinnerDropDownItemStyle"
    android:singleLine="true"
    android:layout_width="match_parent"
    android:layout_height="?android:attr/listPreferredItemHeight"
    android:ellipsize="marquee"
    android:soundEffectsEnabled="false" />

And on Java code:

ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item,
 
getResources().getStringArray(R.array.selecao_ordem_opts));
    adapter.setDropDownViewResource(R.layout.spinner_item);
    selecao_ordem.setAdapter(adapter);
    selecao_ordem.setSelection(opcoes.ordem);
    selecao_ordem.setSoundEffectsEnabled(false);

What am I doing wrong?

-- 

2. JavaScript Camera API Update ?

Hello everyone,

Do we know if there is an ETA on the JavaScript Camera API ? 
I was really hoping for a Gingerbread release, has it been pushed away ?

-- 

3. sony xperia x10, power button not working for my apps

4. Sending GPS location changes in the code

5. Cant refresh listview when I open activity

6. ArrayList for Views/Layouts problem.

7. Accessing raw (uncompressed) image data from the camera via takePicture(...) callbacks impossible