10-07-2012, 08:15 PM | #1 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Calibre Companion not opening anything but PDF in Moon+
On my Iconia A200, I'm using CC and Moon+ Pro. I am unable to open any format other than PDF in Moon+ from within CC. Other formats report that no app is answering the call.
What I've done: Uninstalled and reinstalled both apps. No luck. Cleared data on both apps. Still no luck. Moon+ can import and open these files (epubs) just fine, and I can also open them from a file browser - just tap the file and it opens in Moon+. But I still can't get them to open from within CC. This makes me sad. |
10-07-2012, 09:08 PM | #2 | |||
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
Quote:
My settings in calibre Preferences -> Device Interface plugins -> Android Driver -> Select available formats and their order for this device: Checked: epub, pdf. This plugin is disabled, but even disabled I wonder if it still may have something to do with your problem (?). In Calibre Companion I use Connect as Wireless Device, in which case (I assume) Calibre Companion uses the Device Interface plugin SmartDevice App Interface, which doesn't list available formats for device. Quote:
If the formats you send (EPUB, MOBI) show up in CC on device, it's got to be a problem on the device end…. I looked in Moon+ Reader Pro but didn't see any settings that might limit the formats it deals with. I'm too new to Android to even know how to specify which app deals with which file extension (as suggested by DoctorOhh). Didn't see a way to do that in Settings -> Apps. But maybe Clearing data and cache for all the other reading apps on the device will help. For all my reading apps on device, in Settings -> Apps, Launch by Default has no defaults set. Last edited by unboggling; 10-07-2012 at 09:20 PM. |
|||
10-07-2012, 09:46 PM | #3 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
I'm using it via the content server almost exclusively. I only connected as a wireless device when I cleared the data and had to resync the metadata for the books already on the device.
How Android deals with defaults - basically, if there's only one option, it uses it. If there are more options, it presents a list of apps you can choose from, and at that time you can select to make your choice the default. This is true regardless of whether you are in CC, or a file browser, or any other app trying to open a file or carry out a command. It is the apps themselves which "announce" to Android what files or commands they can handle. If an app does not make this announcement, one has to open files from within the app instead. But that's not the case here. Since Astro automatically opens the files in Moon+, that tells me that Android knows Moon+ to be the app for those files. It just isn't letting CC in on the conversation for some reason. I no longer have any other reader apps installed except for Kindle and Google Play Books, and neither of those "announce" themselves as "file openers" - they both operate in their own universe. Neither have any defaults set. |
10-07-2012, 10:20 PM | #4 | |
Wizard
Posts: 1,065
Karma: 858115
Join Date: Jan 2011
Device: Kobo Clara, Kindle Paperwhite 10
|
Quote:
I'm stumped. I couldn't replicate the problem. That is with calibre 0.9.1 on OS X 10.8.2, connecting to content server from Calibre Companion 2.2.2 on Android 4.1.1 on a Nexus 7. Good luck. Last edited by unboggling; 10-07-2012 at 11:33 PM. Reason: clarify |
|
10-08-2012, 12:27 AM | #5 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
When you open a epub from a file browser it opens in Moon+ fine? Is the difficulty opening from CC only when you are connected to the content server, wirelessly connected, when not connected, or all three? On the surface it seems to be unique to your tablet, maybe chaley can lend some insight. Good Reading! |
|
10-08-2012, 03:18 AM | #6 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@CWatkinsNash: it sounds like extension-to-app mapping on your tablet has been corrupted in some way. The oracle of google finds reports of this happening if apps are selected to be the default for a mimetype (extension), then uninstalled.
Things I would try: - Go to settings -> apps -> Moon+ and check what is in the "Launch by default" setting. It is probably empty, but it is worth the check. - Reinstall the other readers. For each one, verify that it is not the default reader app for that type (same as above). I think you will find that your tablet "remembered" some setting. Clear all the "launch by default" for each app. Then uninstall again. While they are installed you might also check if CC finds any of these apps, just to verify that android "intent" mapping works at all on your device. Good luck! |
10-08-2012, 11:26 AM | #7 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Thank you Walt and Charles for your efforts. Of all the weird problems to have... But then, I do tend to get the odd ones.
I did as suggested and reinstalled the reader apps (FBReader & Aldiko) and checked the defaults - none were set. I then cleared data on everything involved (including CC), still no luck. I still got the "no app answering the call" dialog on epubs. Interestingly, I do now get options for mobi (including Moon+), which was not the case yesterday. So now we're down to just epubs being an issue. In the file browser, selecting an epub now presents all expected options - FBreader, Moon+, and Aldiko. Just for kicks, I selected to use Moon+ as the default. Went back to CC, cleared data, rescanned, and still "no answer". Since I was looking for an excuse to tinker anyway, maybe today is a good day to install a custom ROM. I've been unlocked and rooted since day two of having the tablet, so all I needed was a reason. I'm gonna go make a nandroid and get started. Last edited by CWatkinsNash; 10-08-2012 at 11:26 AM. Reason: bbcode fail |
10-08-2012, 02:24 PM | #8 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
While in the CWM recovery menu I realized that I actually like the stock ROM and really didn't want to invite "experimental issues", so I went for a wipe and factory restore. When it rebooted after and I went through setup, I made sure to uncheck the Google restore options. I even removed the SD, copied all backup and recovery directories to the computer and deleted them from the SD.
Every single bit (no pun intended) of everything was reset to factory. Installed Moon+ Pro. Started it up once. Installed CC. Started it up, made preferred changes to formats / folder locations. Connected to CS and downloaded some books in all three of my formats - epub, pdf, mobi. (I should note that nothing in calibre has DRM, so that's never an issue.) Selected a PDF - opened in Moon+ Selected a mobi - opened in Moon+ Selected an epub - Moon+ did not pick up the call. So I open Astro file manager, and just as before, everything including epubs open in Moon+ just fine from there. I even forced it to set Moon+ as the default for epub but still no joy in CC. Specifying a MIME type doesn't do anything either. (That was a long shot anyway - mobi doesn't have one set and they work just fine.) At this point I'm ready to give up on having CC be my main interface for browsing my books. I love it but there's obviously a problem specific to my tablet that I can't get around without more drastic measures. My earlier experiments showed that using a different reader app doesn't fix the epub issue either. Thanks to the three of you for your help. At some point I may take another swing at it but right now I'm moving on to the other fun things my tablet does. CC is still very useful to me even without this. |
10-08-2012, 02:49 PM | #9 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
When you ask CC to open a book, it: - looks up the mimetype for the extension using Android's MimeTypeMap. If this returns something, then use it totally unmodified. - If MimeTypeMap returns nothing, then look up the mimetype in CC's internal table and use that. - If CC's internal map returns nothing, then show a dialog saying that CC doesn't know what to do. - Given a non-null mimetype, ask Android to provide a list of "intents" (applications) that can handle that mimetype, and show them to the user. If Android returns an empty list, show a dialog to the user. Couple this with your experience, then one of the following must be true: - The mimetype map for your tablet is returning an incorrect value for epub. What "incorrect" means in this instance is unclear. It might be as simple as letter case. - Your tablet does not have a mimetype for epub, and CC's map is incorrect. This is possible but unlikely. Calibre's mimetype for epub is mimetypes.put("epub", "application/epub+zip"); all lower case, which as far as I can tell is correct. - Moon+ is advertizing a mimetype that does not conform exactly to the industry-standard mimetype. This is not a reasonable assertion, given that it works in other cases. However, all the "other cases" might be a different version of android, so we can't rule this case out. I am leaning toward your tablet returning a mimetype in mixed case. The file manager app could be converting the mimetype to lowercase, making it work with moon+. We should probably do the same thing, although it being necessary would be astonishing. I don't know anything about your tablet. What version of android does it run? |
|
10-08-2012, 03:00 PM | #10 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
A HA!
Found in android documentation: Quote:
FWIW: android it totally wrong in this. mimetypes are defined in the various specs as being case-insensitive. |
|
10-08-2012, 03:50 PM | #11 |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
My tablet is running ICS, 4.0.3 stock with stock kernel.
Interesting findings on the mimetypes. I'll wait for the update and see if that makes any difference. In the meantime I might play around with the mimetypes some more. Especially since Astro lets me reset them with one button. |
10-10-2012, 08:25 AM | #12 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Germane to this discussion, CC now forces mimetypes to lowercase before looking up apps that can handle it. I hope that solves the problem you are having. |
|
10-10-2012, 12:15 PM | #13 | |
IOC Chief Archivist
Posts: 3,950
Karma: 53868218
Join Date: Dec 2010
Location: Fruitland Park, FL, USA
Device: Meebook M7, Paperwhite 2021, Fire HD 8+, Fire HD 10+, Lenovo Tab P12
|
Quote:
It sounds like there was a combination of issues and this update fixed the biggest one. I'm happy now. I can definitely work with this. I actually don't mind having two different readers because of the type of content I'm using on the tablet, and also because I can now use CC as my frontend, it doesn't matter so much *what* they open in, just that they open. |
|
10-10-2012, 01:47 PM | #14 | ||
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Of course, it could be happening on lots of tablets and we aren't hearing about it. It isn't happening on the nexus 7 or galaxy nexus, but that doesn't mean much. Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[android app] Calibre Companion & Moon+ on Nexus7 | unboggling | Calibre Companion | 12 | 05-14-2013 11:21 PM |
[Android App] Calibre Companion, First Take | DoctorOhh | Devices | 61 | 08-27-2012 12:38 PM |
Hi. How do I stop PDF attachments auto opening in Calibre? | jono33_nz@hotmai | Calibre | 5 | 09-23-2011 06:23 AM |
Opening PDF Books in Calibre Viewer. | scotmad | Library Management | 2 | 08-08-2011 12:05 PM |
Free (Kindle/Nook/PDF) The Aimee Leduc Companion (Short) | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 6 | 03-13-2011 04:05 AM |