어플에서 버튼을 클릭하면 해당하는 워드문서(doc)를 워드뷰어 어플을 실행시켜서 보여줄려고 하는데 소스는 구글뒤지다가 대충 발견한거 같은데
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setType( "application/msword" );
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse( "파일있는곳" ));
startActivity(intent);
|
버튼클릭시 위에 소스가 실행되구요
메니페스트 파일에 인텐트 필터를 아래와 같이 추가 했습니다.
<intent-filter>
<action android:name= "android.intent.action.SEND" />
<category android:name= "android.intent.category.DEFAULT" />
<data android:mimetype= "application/msword" />
</intent-filter>
|
근데 minetype있는 라인에서 error: No resource identifier found for attribute 'mimetype' in package 'android'
이런 에러가 떠 있는데 어디가 잘못된건가요? 작은 힌트나 조언이라도주시면 큰 도움이 될거 같습니다.