Q: Save checkbox value and send it to e-mail I want to save checkbox data from 3 pages and than send it to e-mail with button, what i did wrong there? Or maybe i'm missed something? I tried some ideas but now i'm just stuck with it
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_which_drink);

    Button button = (Button)findViewById(R.id.button);
    Intent intent = new Intent(Intent.ACTION_SEND);
    intent.setClassName("com.google.android.gm", "com.google.android.gm.ComposeActivityGmail");
    intent.setType("button/press");
    intent.putExtra(Intent.EXTRA_EMAIL,new String[]{"djalise@gmail.com"});
    intent.putExtra(Intent.EXTRA_SUBJECT, "ElBoricuaSandwich");
    intent.putExtra(Intent.EXTRA_TEXT, "../chooseDrinkSize");
}

public void onCheckboxClicked(View view) {
    // Is the view now checked?
    boolean checked = ((CheckBox) view).isChecked();

    // Check which checkbox was clicked
    switch (view.getId()) {
        case R.id.checkBox5:
            if (checked) ;
                //
            else
                //
                break;
        case R.id.checkBox6:
            if (checked) ;
                //
            else
                //
                break;
            //

        case R.id.checkBox7:
            if (checked) ;
                //
            else
                //
                break;
    }
}
}


A: You should create a method to send an email and call to this method when an action occurs
UPDATE
Code:
    private String emailText = "";
    private CheckBox box1;
    private CheckBox box2;
    private CheckBox box3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_which_drink);
        initViews();
    }

    public void sendEmail() {
        Intent mailIntent = new Intent(Intent.ACTION_SENDTO);
        mailIntent.setData(Uri.parse("mailto:"));
        mailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"djalise@gmail.com"});
        mailIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject");
        mailIntent.putExtra(Intent.EXTRA_TEXT, emailText);
        Intent mailChooserIntent = Intent.createChooser(mailIntent, "Title");
        startActivity(mailChooserIntent);
    }

    private void initViews(){
        box1 = (CheckBox) findViewById(R.id.box1);
        box2 = (CheckBox) findViewById(R.id.box2);
        box3 = (CheckBox) findViewById(R.id.box3);
        Button button = (Button) findViewById(R.id.button);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                buildEmailText();
                sendEmail();
            }
        });
    }

    private void buildEmailText(){
        if(box1.isChecked) emailText += "\nBox 1 is checked";
        if(box2.isChecked) emailText += "\nBox 2 is checked";
        if(box3.isChecked) emailText += "\nBox 3 is checked";
    }
    //...

