2014-01-08 7 views
0

다음 시나리오가 있습니다.Intent.ACTION_VIEW에서 URL 가져 오기

전자 메일 첨부 파일 열기 (Gmail) ->보기 및 내 앱에 저장. 이를 위해

내가 다시이 데이터를 가져 난() 또는 엑스트라 통해 다시 intent.getData에 URL을하지 않으면 내가
<intent-filter> 
       <action android:name="android.intent.action.VIEW"> 
       </action> 

       <category android:name="android.intent.category.DEFAULT"> 
       </category> 

       <data android:scheme="content" android:mimeType="*/*"/> 
       <data android:scheme="file" android:mimeType="*/*"/> 


      </intent-filter> 

manifest.xml

이를 추가 처리 할 수 ​​있습니다. 나는 아주 간단한 것을 놓치고 있을지도 모른다.

환호, Saurav

답변

0

그것은 도움이되지 않았다 이러한 방법

<intent-filter> 
    <action android:name="android.intent.action.VIEW" /> 
    <action android:name="android.intent.action.EDIT" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <data 
    android:mimeType="application/mytype" 
    android:host="*" 
    android:pathPattern=".*\\.mytpe" 
    /> 
</intent-filter> 
+0

에 그것을 할하시기 바랍니다. Android보기 의도가 URI를 보냅니 까? – saurav