為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Android Firefox won't open files with my app if a mime-type intent-filter is specified

more options

I'm writing an app that opens music notation files. In my app I specify this data-entry intent-filter which allows downloaded files from the Chrome or Android browsers to open the file with my app:

<data android:scheme="content" android:mimeType="*/*" android:pathPattern=".*\\.mcmidi" />

but Android Firefox does not. However if I specify just this: <data android:scheme="file" android:pathPattern=".*\\.mcmidi" />

then Firefox will open the file with my app from it's downloads screen.

The problem is, if I try to use both then firefox fails, and will not open my file. In fact I can't find any combination of intent filter entries that will work for firefox and other apps. It's either firefox only and it breaks everywhere else, or everything else works and firefox doesn't.

Can you tell me if this is a firefox bug, and if so is there a workaround?

I'm writing an app that opens music notation files. In my app I specify this data-entry intent-filter which allows downloaded files from the Chrome or Android browsers to open the file with my app: <data android:scheme="content" android:mimeType="*/*" android:pathPattern=".*\\.mcmidi" /> but Android Firefox does not. However if I specify just this: <data android:scheme="file" android:pathPattern=".*\\.mcmidi" /> then Firefox will open the file with my app from it's downloads screen. The problem is, if I try to use both then firefox fails, and will not open my file. In fact I can't find any combination of intent filter entries that will work for firefox and other apps. It's either firefox only and it breaks everywhere else, or everything else works and firefox doesn't. Can you tell me if this is a firefox bug, and if so is there a workaround?

所有回覆 (1)

more options

Damon: dev questions are best asked on irc.mozilla.org #mobile, or in this case by filing a bug on http://bugzilla.mozilla.org in Firefox for Android :: General. Feel free to CC me.

If it's an issue with Firefox, that'll help.

Please also give this a shot with Firefox Nightly; that'll help determine whether it's something that's been fixed between Firefox 28 and Firefox 31.

Thanks!