암시적 Intent 사용 (전화걸기, 메일보내기, 사용자 정의 등)

웹페이지 띄우기
Uri uri = Uri.parse("http://www.google.com");  
Intent it  = new Intent(Intent.ACTION_VIEW,uri);  
startActivity(it);

구글맵 띄우기
Uri uri = Uri.parse("geo:38.899533,-77.036476");  
Intent it = new Intent(Intent.Action_VIEW,uri);  
startActivity(it);

구글 길찾기 띄우기
Uri uri = Uri.parse(
"http://maps.google.com/maps?f=d&saddr=출발지주소&daddr=도착지주소&hl=ko"
);  
Intent it = new Intent(Intent.ACTION_VIEW,URI);  
startActivity(it);

다이얼러 띄우기
Uri uri = Uri.parse("tel:xxxxxx");  
Intent it = new Intent(Intent.ACTION_DIAL, uri);
startActivity(it);

전화걸기(퍼미션을 잊지 마세요. <USES-PERMISSION id=android.permission.CALL_PHONE />)
Uri uri = Uri.parse("tel.xxxxxx");  
Intent it = new Intent(Intent.ACTION_CALL,uri);  
startActivity(it);

SMS/MMS 발송
Intent it = new Intent(Intent.ACTION_VIEW);  
it.putExtra("sms_body", "The SMS text");  
it.setType("vnd.android-dir/mms-sms");  
startActivity(it);

SMS 발송
Uri uri = Uri.parse("smsto:0800000123");  
Intent it = new Intent(Intent.ACTION_SENDTO, uri);  
it.putExtra("sms_body", "The SMS text");  
startActivity(it);

MMS 발송
Uri uri = Uri.parse("content://media/external/images/media/23");  
Intent it = new Intent(Intent.ACTION_SEND);  
it.putExtra("sms_body", "some text");  
it.putExtra(Intent.EXTRA_STREAM, uri);  
it.setType("image/png");  
startActivity(it);

이메일 발송
Uri uri = Uri.parse("mailto:xxx@abc.com");  
Intent it = new Intent(Intent.ACTION_SENDTO, uri);  
startActivity(it);  
Intent it = new Intent(Intent.ACTION_SEND);  
it.putExtra(Intent.EXTRA_EMAIL, "me@abc.com");  
it.putExtra(Intent.EXTRA_TEXT, "The email body text");  
it.setType("text/plain");  
startActivity(Intent.createChooser(it, "Choose Email Client"));
Intent it = new Intent(Intent.ACTION_SEND);
String[] tos = {"me@abc.com"};
String[] ccs = {"you@abc.com"};
it.putExtra(Intent.EXTRA_EMAIL, tos);
it.putExtra(Intent.EXTRA_CC, ccs);
it.putExtra(Intent.EXTRA_TEXT, "The email body text");
it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text");
it.setType("message/rfc822");
startActivity(Intent.createChooser(it, "Choose Email Client"));