Hi, I would like to associate an activity with http links to files of several types. More precisely, I would like to open in my activity all the files with extensions ".epub", ".fb2" and ".fb2.zip". Unfortunately, there is no standard mymetype associated with such files on the Internet. So I would like to use a filter by file path.
I've added the following lines into my AndroidManifest.xml: <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:mimeType="*/*" android:scheme="http" android:pathPattern=".*\\.epub" /> <data android:mimeType="*/*" android:scheme="http" android:pathPattern=".*\\.fb2" /> <data android:mimeType="*/*" android:scheme="http" android:pathPattern=".*\\.fb2\\.zip" /> </intent-filter> (Yes, I would like to download these files directly from my application, not by the standard Download Activity.) However the result is slightly confusing: 1. For some links this works as I mean, great! 2. However, when I click the link http://www.feedbooks.com/book/1810.epub, browser tries to download it using standard Dowload Activity and says "Cannot download. The content being downloaded is not supported on the phone." 3. In the other hand, all the *.zip links are now processed by my activity! What is wrong in my AndroidManifest.xml? Regards, -- Nikolay Pultsin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---