2011-04-08 8 views

답변

24

예. 인 텐트를 통해 시작할 수 있습니다. 일의 최신 방법까지

Intent i = new Intent(Intent.ACTION_SEND); 
i.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{ emailAddress }); 
i.putExtra(android.content.Intent.EXTRA_SUBJECT, subject); 
i.putExtra(android.content.Intent.EXTRA_TEXT, text); 
startActivity(Intent.createChooser(i, "Send email")); 
+1

은 직장 동료와 똑같습니다. 이것은 내가 한 방식입니다. 의도 = 새로운 의도 (Intent.ACTION_SENDTO, Uri.fromParts ( "mailto", EMAIL_ADDRESS, null)); – jonney

3
Intent i = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
        "mailto", EMAIL_ADDRESS, null)); 

그것을

 i.putExtra(android.content.Intent.EXTRA_SUBJECT, SUBJECT); 
     i.putExtra(android.content.Intent.EXTRA_TEXT, BODY); 
     startActivity(Intent.createChooser(i, "Send email")); 
관련 문제