이슈(버그/기능문의):
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 );
두 개 다 동시에 올릴 수 있는 명확한 방법을 가르쳐 주셨으면 합니다.