@@ -0,0 +1,2337 @@
+package com.thinking.mail;%0A//what ever your package name%0Aimport android.app.Activity;%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.view.Menu;%0Aimport android.view.MenuItem;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.EditText;%0A//importing all the required packages shrtcut(ctrl+shift+o)%0Apublic class Email extends Activity %7B%0A%09EditText personsEmail,intro,personsName,outro;%0A    String emailAdd,name,beginning,out,subject;%0A    Button sendEmail;%0A%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09setContentView(R.layout.activity_email);%0A%09%09personsEmail=(EditText) findViewById(R.id.editText1);%0A %09%09intro=(EditText) findViewById(R.id.editText2);%0A %09%09personsName=(EditText) findViewById(R.id.editText3);%0A %09%09outro=(EditText) findViewById(R.id.editText6);%0A %09%09sendEmail=(Button) findViewById(R.id.button1);%0A %09%09sendEmail.setOnClickListener(new View.OnClickListener() %7B%0A%09%09%09%0A%09%09%09@Override%0A%09%09%09public void onClick(View arg0) %7B%0A%09%09%09%09// TODO Auto-generated method stub%0A%09%09%09%09 ConversionEditTexttoString();%0A%09%09%09%09%09String emailAddress%5B%5D=%7BemailAdd%7D;%0A%09%09%09%09%09String subject=beginning;%0A%09%09%09%09%09String Message=%22This is%22+name+beginning+outro;%0A%09%09%09%09%09Intent emailIntent=new Intent(android.content.Intent.ACTION_SEND);%0A%09%09%09%09%09emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, emailAddress);%0A%09%09%09%09%09emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);%0A%09%09%09%09%09emailIntent.setType(%22plain/text%22);%0A%09%09%09%09%09emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Message);%0A%09%09%09%09%09startActivity(emailIntent);%09%0A%09%09%09%7D%0A%0A%09%09%09private void ConversionEditTexttoString() %7B%0A%09%09%09%09// TODO Auto-generated method stub%0A%09%09%09%09emailAdd=personsEmail.getText().toString();%0A%09%09%09%09name=personsName.getText().toString();%0A%09%09%09%09beginning=intro.getText().toString();%0A%09%09%09%09out=outro.getText().toString();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%7D%0A%0A%09@Override%0A%09public boolean onCreateOptionsMenu(Menu menu) %7B%0A%09%09// Inflate the menu; this adds items to the action bar if it is present.%0A%09%09getMenuInflater().inflate(R.menu.email, menu);%0A%09%09return true;%0A%09%7D%0A%09public boolean onOptionsItemSelected(MenuItem menuItem)%0A%09%7B%0A%09%09%0A%09%09int id=menuItem.getItemId();%0A%09%09if(id==R.id.action_settings)%0A%09%09%7B%0A%09%09%09Intent open=new Intent(getApplicationContext(),com.thinking.mail.About.class);%0A%09%09    startActivity(open);%0A%09%09%7D%0A%09 return true;     %09%0A%09%7D%0A%0A%7D%0A

Create mail.java