我只想在电子邮件中保存复选框的真/假状态。我是新人,在我走的时候自学,所以我道歉。先感谢您!!这就是我所拥有的:
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?////
答案 0 :(得分:0)
我找到了我需要的答案:
email.putExtra(android.content.Intent.EXTRA_TEXT,
///All I have to put here is:
check1.isChecked()
现在它完美无缺,谢谢你!