This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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?

All Replies (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!