Click here to Skip to main content
15,877,966 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This is my Contact.java

package com.example.helloworld;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;

public class Contact extends Activity {
EditText textName;
EditText textSubject;
EditText textMessage;
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.contact);
}
public void List(View v){
super.onBackPressed();
}

public void SendMail(View v) {

final GMailSender sender = new GMailSender("nani22791@gmail.com", "xxxxx");
new AsyncTask<void,>() {
@Override public Void doInBackground(Void... arg) {
try {
sender.sendMail("hi","message","murugan","murugan.siva87@gmail.com");
} catch (Exception e) {
Log.e("SendMail", e.getMessage(), e);
}
return null;
}
}.execute();

}
}
Posted
Updated 16-Apr-14 20:36pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900