본문 바로가기

android

email intent

  1. Intent i = new Intent(Intent.ACTION_SEND)
  2. //i.setType("text/plain"); //use this line for testing in the emulator 
  3. i.setType("message/rfc822") ; // use from live device
  4. i.putExtra(Intent.EXTRA_EMAIL, new String[]{"test@gmail.com"})
  5. i.putExtra(Intent.EXTRA_SUBJECT,"subject goes here")
  6. i.putExtra(Intent.EXTRA_TEXT,"body goes here")
  7. startActivity(Intent.createChooser(i, "Select email application."));

'android' 카테고리의 다른 글

Bitmap 객체 jpg로 저장하기  (0) 2011.06.21
bitmap to jpg  (0) 2011.06.21
email intent 다중파일 전송  (0) 2011.06.21
android email intent  (0) 2011.06.21
android facebook 연동하기(1)  (0) 2011.06.21