发送复选框状态数据到电子邮件

时间:2012-05-08 02:27:27

标签: android email android-intent checkbox

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

    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?////

1 个答案:

答案 0 :(得分:0)

我找到了我需要的答案:

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

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

现在它完美无缺,谢谢你!