Intent intent = new Intent(Intent.ACTION_SEND);

intent.putExtra(Intent.EXTRA_SUBJECT, ");

 intent.putExtra(Intent.EXTRA_STREAM,Uri.parse("file:///sdcard/qw.png"));
intent.setType ("image/*");

startActivity(intent);

 

이렇게 실행하니 카카오톡,이메일, 페이스북 등 사진을 공유 할수잇는 앱들의 리스트가 대화상자로 뜹니다.

다른앱들은 이미지 보내기나 업로드가 잘되는데

페이스북을 클릭하는 순간 업로드 하려고 한 qw.png 파일이 삭제가 되더군여

이유가 무엇인지도 궁금하고 해결방책이 있을 까 해서 여쭈어 봅니다.ㅠㅠ