Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

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?

Krejt Përgjigjet (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!