안드로이드에서 스토리에 이미지와 글을 동시에 보내고 싶습니다

518 views
Skip to first unread message

Pang

unread,
Feb 14, 2014, 1:23:07 AM2/14/14
to kakaos...@googlegroups.com
이슈(버그/기능문의): 

OS(Android/iOS): Jellybean

문의내용: 

앱에서 실행시 그림과 글을 곧바로 올릴 수 있도록 다음과 같이 코드를 짰습니다.

button.setOnclickListener( new View.OnClickListener( ) {
@Override
public void onClick( View arg0 ) {

Intent intent = new Intent( Intent.ACTION_SEND_MULTIPLE );
Uri uri = Uri.fromFile( new File( "파일 경로" ) ) );
intent.setType( "*/*" );
intent.putExtra( Intent.EXTRA_STREAM, uri );
intent.putExtra( Intent.EXTRA_TEXT, "subject" );
intent.setPackage( "com.kakao.story" );
startActivityForResult( intent, 0 );
}
});


결과는 카카오스토리에서 글쓰기 모드나 그림 편집 모드가 아니고, 그냥 곧바로 소식 모드로 들어가 버립니다. 물론 사진도 글도 올라가지 않고요



Intent intent = new Intent( Intent.ACTION_SEND_MULTIPLE );
Uri uri = Uri.fromFile( new File( "파일 경로" ) ) );
intent.setType( "image/*" );                                                 // 카카오스토리에서 에러가 납니다
intent.putExtra( Intent.EXTRA_STREAM, uri );
intent.putExtra( Intent.EXTRA_TEXT, "subject" );
intent.setPackage( "com.kakao.story" );
startActivityForResult( intent, 0 );




Intent intent = new Intent( Intent.ACTION_SEND );
Uri uri = Uri.fromFile( new File( "파일 경로" ) ) );
intent.setType( "image/*" );
intent.putExtra( Intent.EXTRA_STREAM, uri );
intent.putExtra( Intent.EXTRA_TEXT, "subject" );                // 텍스트는 전달되지 않습니다
intent.setPackage( "com.kakao.story" );
startActivityForResult( intent, 0 );





Intent intent = new Intent( Intent.ACTION_SEND );
Uri uri = Uri.fromFile( new File( "파일 경로" ) ) );
intent.setType( "*/*" );                                                 // 카카오스토리에서 에러가 납니다
intent.putExtra( Intent.EXTRA_STREAM, uri );
intent.putExtra( Intent.EXTRA_TEXT, "subject" );                
intent.setPackage( "com.kakao.story" );
startActivityForResult( intent, 0 );



두 개 다 동시에 올릴 수 있는 명확한 방법을 가르쳐 주셨으면 합니다.

Jay

unread,
Feb 15, 2014, 12:54:08 AM2/15/14
to kakaos...@googlegroups.com
안녕하세요, Pang님.

해당 기능은 저희가 따로 제공해드리는 SDK를 이용하시면 구현하실 수 있습니다.
위 웹사이트를 참조하시기 바랍니다.

감사합니다.

2014년 2월 14일 금요일 오후 3시 23분 7초 UTC+9, Pang 님의 말:
Reply all
Reply to author
Forward
0 new messages