Random notes from mg

a blog by Marius Gedminas

Marius is a Python hacker. He works for Programmers of Vilnius, a small Python/Zope 3 startup. He has a personal home page at http://gedmin.as. His email is marius@gedmin.as. He does not like spam, but is not afraid of it.

Fri, 23 Jul 2010

Serving ePub files to Android 1.6

If you click on an ePub download link in the Android browser and get back an error saying "Cannot download. The content type is not supported on the device", then make sure the web server is setting the Content-Type header to "application/epub+zip" and not "application/octet-stream". When you do this, Android will launch FBReaderJ automatically (provided that you have it installed, of course).

posted at 02:23 | tags: , | permanent link to this entry | 2 comments
I used Astro on my Dell Streak with stock Android 1.6 to set file associations. This still does not allow me to open or download these files, even when sent as an email attachment. Weired! I do have several epub readers installed (MoonReader, FBReaderJ) but somehow this is not recognized as a the proper app to open it. The epub file I'm trying to download is not DRMed.
Do I have to be root to get this to work?
Many thanks!
posted by Nils at Tue Sep 7 16:43:01 2010
You just helped me out.  Couldn't figure out why ePub files were downloading properly to PC amnd Mac's but streaming in garbled on Android and iPhone devices.  Your little post solved it for me.  Don't know how I found it through all the web grabage ;-)
posted by Lawrence at Thu Jul 7 04:02:22 2011

Name (required)


E-mail (will not be shown)


URL


Comment (some HTML allowed)