ฉันกำลังพบกับเงื่อนไขข้อผิดพลาด "การดำเนินการนี้ไม่ได้รับการสนับสนุนในปัจจุบัน" เมื่อรันโค้ดต่อไปนี้ใน Android 2.1 เกิดอะไรขึ้นกับตัวอย่างข้อมูล?
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_SENDTO);
Uri uri = Uri.parse("mailto:[email protected]");
intent.setData(uri);
intent.putExtra("subject", "my subject");
intent.putExtra("body", "my message");
startActivity(intent);
}