Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #38653

Re: Q.: (un-)supported filetypes for downloading

From Daniel James <daniel@me.invalid>
Newsgroups comp.mobile.android
Subject Re: Q.: (un-)supported filetypes for downloading
Date 2017-02-08 17:22 +0000
Organization A noiseless patient Spider
Message-ID <VA.00000c3b.0b9ad500@me.invalid> (permalink)
References <835bsybkw8h1.1ctb0eso23bys.dlg@40tude.net> <VA.00000c33.00ba2d62@me.invalid> <1pg35l3lye7ug$.1jqx4gtlk5347.dlg@40tude.net>

Show all headers | View raw


In article <1pg35l3lye7ug$.1jqx4gtlk5347.dlg@40tude.net>, Tlvp wrote:
>> I don't use .mobi much, but I have found something similar with
>> .epub files. Using K9 on Android I *can* download the file, but
>> I then get a ...
> 
> At least your installation (handset type and Android version)
> allows your mail app K9 to succeed in the download. My
> installation does *not* let the browser-mediated webUI for my
> email service succeed in such a download.

I've just noticed that you mentioned using webmail -- rather than an 
EMail client like K9 -- but you didn't mention what browser you're 
using. It seems from later in this later post that you're using Opera? I 
haven't used that on Android and I can't say what idiosyncrasies it may 
have.

I've just tried downloading a .epub link from Project Gutenberg from 
Chrome on a phone (I'd have tried a .mobi, but the title I chose wasn't 
available as a .mobi, and I don't recall whether Gutenberg generally 
offers that format). I click the link to the book and Chrome (or, 
rather, the Android system) asks whether I want to download it with 
Chrome or with FBReader. I chose Chrome, to see what would happen, and 
Chrome downloaded the book to its default download directory and asked 
whether I wanted to open it. I tapped on the "Open" button and the book 
opened in FBReader.

I would *expect* something similar to happen with your setup ... but it 
depends on the browser doing the right thing ... and maybe also on the 
coding of the webmail page. It may be that if the webmail application 
uses scripting to achieve the download rather than a simple HTML link 
then it will be handled less well by the browser.

>> but when I try to open it with a file manager I am offered a
>> choice of a number of apps that can open a text file, rather
>> than FBReader, to open it.
> 
> Heh-heh, your system's smarter'n mine: mine just says "unknown
> file type".

I guess it depends what file manager you're using ...

When an Android app wants to open a file in another app it tells the 
system to start an 'Activity' to open that file, and specifies a file 
type. The Android system looks at the list of apps that can handle that 
type of file -- and if there's more than one and no default has been set 
it offers the user a choice.

However, the file type is specified as a MIME content-type. If the 
controlling app just has a filename (such as "mybook.mobi") and doesn't 
know that the ".mobi" file extension indicates a Mobipocket file and 
that its MIME type is (I think) application/x-mobipocket-ebook it can't 
start an Activity with the right type.

If the app is correctly written it should use the Android 
getMimeTypeFromExtension to get the right value, but if it isn't written 
to do that -- or if for some reason the mobi extension is missing from 
the Android mime type table (I'm not sure how that gets set up) then 
that will fail too.

> In my case, it's immaterial whether I use the stock browser, Opera
> Mini, or Opera Mobile, the attempted download always fails with the
> complaint that the file to be downloaded is not of a supported type.

That sounds like an Opera bug. You don't need to know a file's type to 
download it, though you may do to open it.

> Maybe I ought to just rename the .mobi files I want on the phone
> so as to bear a .txt extension, and try sending those as email
> attachments: if they download successfully in that form, I can
> then rename them back to .mobi on the phone and work around the
> problem that way. But what a silly kluge, eh?

That might work ... it'd be interesting to know.

The problem sounds as though it is Opera, though. Have you tried a 
different browser?

-- 
Cheers,
 Daniel.
 





Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-01 04:00 -0500
  Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-06 14:40 +0000
    Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-08 01:25 -0500
      Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-08 17:22 +0000
        Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-08 15:53 -0500
          Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-10 13:33 +0000
            Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 02:28 -0500
              Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-11 15:32 +0000
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 13:22 -0500
                Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-12 14:22 +0000
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-12 17:34 -0500
      Re: Q.: (un-)supported filetypes for downloading Frank Slootweg <this@ddress.is.invalid> - 2017-02-10 16:16 +0000
        Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 02:13 -0500
          Re: Q.: (un-)supported filetypes for downloading Frank Slootweg <this@ddress.is.invalid> - 2017-02-11 15:12 +0000
            Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 14:04 -0500
              Re: Q.: (un-)supported filetypes for downloading "Carlos E. R." <robin_listas@invalid.es> - 2017-02-12 02:26 +0100
              Re: Q.: (un-)supported filetypes for downloading Frank Slootweg <this@ddress.is.invalid> - 2017-02-12 11:26 +0000
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-12 17:43 -0500
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-12 17:50 -0500
                Re: Q.: (un-)supported filetypes for downloading "Carlos E. R." <robin_listas@invalid.es> - 2017-02-13 02:12 +0100
                Re: Q.: (un-)supported filetypes for downloading Frank Slootweg <this@ddress.is.invalid> - 2017-02-13 17:54 +0000
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-13 15:31 -0500
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-15 01:14 -0500
                Re: Q.: (un-)supported filetypes for downloading Daniel James <daniel@me.invalid> - 2017-02-13 23:30 +0000
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-15 01:17 -0500
      Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 02:01 -0500
        Re: Q.: (un-)supported filetypes for downloading AL <135684@invalid.com> - 2017-02-11 00:23 -0700
          Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 03:20 -0500
            Re: Q.: (un-)supported filetypes for downloading AL <135684@invalid.com> - 2017-02-11 10:04 -0700
              Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-11 14:18 -0500
                Re: Q.: (un-)supported filetypes for downloading "Carlos E. R." <robin_listas@invalid.es> - 2017-02-12 02:29 +0100
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-12 17:53 -0500
                Re: Q.: (un-)supported filetypes for downloading AL <135684@invalid.com> - 2017-02-11 21:44 -0700
                Re: Q.: (un-)supported filetypes for downloading tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2017-02-12 18:03 -0500
                Google Drive for offsite backup (was: Q.: (un-)supported filetypes for downloading) Frank Slootweg <this@ddress.is.invalid> - 2017-02-13 18:20 +0000
                Re: Google Drive for offsite backup AL <135684@invalid.com> - 2017-02-13 15:45 -0700
                Re: Google Drive for offsite backup AL <135684@invalid.com> - 2017-02-13 17:09 -0700
                Re: Google Drive for offsite backup Frank Slootweg <this@ddress.is.invalid> - 2017-02-14 16:30 +0000
                Re: Google Drive for offsite backup AL <135684@invalid.com> - 2017-02-14 18:37 -0700

csiph-web