状況:
この形式でリストされたダウンロードを含む Web サイトがあります。
http://www.xyz.org/download.php?id=1234568
サーバーからの応答ヘッダーは次のようになります。
HTTP/1.1 200 OK
Date: Thu, 06 Sep 2012 15:14:33 GMT
Server: Apache
X-Powered-By: PHP/5.2.6-1+lenny16
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Disposition: attachment; filename=myspecialfile.myx
Content-Length: 20269746
Last-Modified: Wed, 05 Sep 2012 17:15:01 GMT
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: application/my+xyz+app
ご覧のとおり、特別なコンテンツ タイプ application/my+xyz+app があります。
ダウンロードを処理できるように、アクティビティが開始されたマニフェスト ファイルのインテント フィルターを作成するにはどうすればよいですか?
これは私がこれまでに持っているものです:
<activity
android:name=".ui.Library"
android:label="@string/app_name"
android:launchMode="singleTask" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:mimeType="application/my+xyz+app" />
</intent-filter>
</activity>
手伝ってくれてありがとう!