I have written a Survey application in android. It contains 10 questions, which is having two checkboxes for each question which says Yes or No. After completing the survey if the user clicks the submit button it should send mail.
Below is my code,
submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "abhi.bhardwaj75@gmail.com", null));
intent.putExtra(Intent.EXTRA_SUBJECT,"Application Survey" );
intent.putExtra(Intent.EXTRA_TEXT, question1);
startActivity(Intent.createChooser(intent, "Choose an Email client :"));
}
});
Here in putExtra
I am able to pass only one string value. Can you anyone please help me how to pass the multiple String values?
I tried the below code also, but it is not working. I am not getting the value.
intent.putExtra(Intent.EXTRA_TEXT, new String[]{question1});