I want my app to catch downloads of a particular kind of file. Here's the corresponding part of AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<activity android:name=".activity.ExeReceiver">
<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" />
<data android:host="*" />
<data android:pathPattern=".*\\.exe" />
</intent-filter>
</activity>
Now, open a page with a link to an .exe file, click it. The download manager starts and then tells that The content is not supported on the phone. My activity doesn't even get called.
The questions are:
1) Why doesn't my activity get called?
2) What's the correct way of letting download manager do it's job and then get notified upon file download completion?
TIA.