Slide 47
Slide 47 text
Lesson
3:
Work
with
the
Android
Framework
and
Control
Flow
Intent
intent
=
new
Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse(“mailto:”));
intent.putExtra(Intent.EXTRA_SUBJECT,
“Order
for:
“
+
name);
intent.putExtra(Intent.EXTRA_TEXT,
message);
if
(intent.resolveActivity(getPackageManager())
!=
null
{
startActivity(intent);
}