Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • 1 ответ
  • 9 имеют эту проблему
  • 6 просмотров
  • Последний ответ от rnewman@mozilla.com

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!