아래는 관련 소스입니다.
void Send_Image(int resid){
Uri dataUri = Uri.parse("android.resource://"+context.getPackageName()+ "/" + R.drawable.dot_con);
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, dataUri);
intent.setPackage("com.kakao.talk");
activity.startActivity(intent);
}
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
카카오톡 까지는 넘어가는데
해당 이미지가 전송이 되질않네요..
퍼미션도 제대로 준것 같은데..
검색해도 시원한 결과가 안나와서 결국 질문작성해봅니다 ㅠ

http://stackoverflow.com/questions/10271993/android-action-send-put-extra-stream-from-res-drawable-folder-causes-crash
다음 방법으로 해결하였습니다.
도움주신 건방진프로그래머님 박카쓰님 감사드립니다 ^^
void Send_Image(int resid) {
Resources res = context.getResources();
Bitmap bitmap = BitmapFactory.decodeResource(res,
resid);
String Name = "emotic_" + resid;
SaveBitmapToFileCache(bitmap, filePath + Name + ".png");
Uri dataUri = Uri.parse("file:///mnt" + filePath + Name + ".png");
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_STREAM, dataUri);
intent.setPackage("com.kakao.talk");
activity.startActivity(intent);
}
private void SaveBitmapToFileCache(Bitmap bitmap, String strFilePath) {
File fileCacheItem = new File(strFilePath);
OutputStream out = null;
try {
fileCacheItem.createNewFile();
out = new FileOutputStream(fileCacheItem);
bitmap.compress(CompressFormat.PNG, 100, out);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
out.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
음 제 생각이지만 저렇게하면 안되는게 맞는거같네요 지금 카톡에서 님쪽의 이미지에 접근할 권한이 없어여.. 그런데 경로를 줘봐자
의미가없게 되겠죠... 그냥 이미지를 파일로 떨구고 해당 이미지 경로를 날려주시는게 좋을거같습니다..
물론 이미지를 파일로 떨굴때는... 앱공간이 아닌 공유공간에 떨구셔야하고요