0

我只是想在电子邮件中保存复选框的真/假状态。我是新手,边走边自学,所以我很抱歉。先感谢您!!这是我所拥有的:

    public class eActivity extends Activity {

    private CheckBox check1;

    ///onCreate

    check1 = (CheckBox) findViewById(R.id.check1);

    ///Email Intent

    email.putExtra(android.content.Intent.EXTRA_TEXT,
    ////What do i put here to get the state of the checkbox true/false?////
4

1 回答 1

0

我找到了我需要的答案:

    email.putExtra(android.content.Intent.EXTRA_TEXT,

    ///All I have to put here is:
    check1.isChecked()

它现在完美无缺,谢谢!

于 2012-05-09T01:10:10.930 回答