I just started with Android development and my first project is to create app for packing and moving company. I've created the form and wanted to send data to the email of an employee. I used this code:
Intent i = new Intent(Intent.ACTION_SEND);
i.setData(Uri.parse("email"));
String[] s={"abc@gmail.com","xyz@gmail.com"};
i.putExtra(Intent.EXTRA_EMAIL,s);
i.putExtra(Intent.EXTRA_SUBJECT,"This is a Subject");
i.putExtra(Intent.EXTRA_TEXT,"Hii This is the Email Body");
i.setType("message/rfc822");
Intent chooser = Intent.createChooser(i,"Launch Email");
startActivity(chooser);
But the problem is user is prompted with option gmail and email and at last he/she also needs to click on send button. But I don't want that. Instead I want the data to be sent without any prompt. Please help!