views:

55

answers:

2

I am experiecing "This action is not currrently supported" error condition when I do the following? I am using 2.1. Anybody knows what I am doing wrong here?

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); }

A: 

Are you running on the emulator? The emulator doesn't have a mail program.

BrennaSoft
Ah. Yes, I was testing in in the emulator. I am surprised that the emulator does not have mail program however. Thanks.
Sang Shin
A: 

Your code works on a real device.

Tested on a HTC Tattoo with 1.6

slup