2010-12-10 3 views

답변

3

당신이 로컬에 저장된 파일을 받아 전자 메일에 첨부 찾고 있다면, 당신은 할 수있는 다음이 사용자가 자신이 원하는 전자 메일 프로그램을 선택하게됩니다

String filename = "/path/to/yourfile.png"; 
File F = new File(filename); 
Uri U = Uri.fromFile(F); 
Intent i = new Intent(Intent.ACTION_SEND); 
i.setType("image/png"); 
i.putExtra(Intent.EXTRA_STREAM, U); 
startActivity(Intent.createChooser(i,"Send Image To:")); 

이미지를 사용하여 결과 메시지에 첨부합니다.

관련 문제