Access another app Using Intent

Access Android’s Internet Browser App

Uri uri = Uri.parse("http://proinfactory.tistory.com/");
Intent web  = new Intent(Intent.ACTION_VIEW,uri);
startActivity(web);

Access Android’s Mail App

Uri uri = Uri.parse("mailto:proin0312@gmail.com");
Intent mail = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(mail);

댓글 남기기