The following snippet shows how to send Email via an Email Intent in an Android Activity:

Code

    package com.codercrunch.apps;
     
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.ImageButton;
     
    import com.livrona.andriod.commons.utils.Log;
     
    public class AboutScreen extends Activity {
     
     @Override
     public void onCreate(Bundle savedInstanceState) {
     
       Log.d("in : onCreate(..)");
       super.onCreate(savedInstanceState);
      setContentView(R.layout.about_screen);
     
       // find it          
      ImageButton buttonEmail=(ImageButton)findViewById(R.id.button_email);
           
      buttonEmail.setOnClickListener(new View.OnClickListener() {
        public void onClick(View view) {
          Log.d("in : Button Email onClick(..)");
     
           // Intent
          Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
     
           // define TO email
          String aEmailList[] = { "to@email.com"};
          emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);
     
          emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Your Subject");
     
           emailIntent.setType("text/html");
           emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Email Body");
     
           // support multiple email clients
          startActivity(Intent.createChooser(emailIntent, "Send your email via:"));
          } // onclick
       }); // listener
     } // method
     
    } // class