Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Android Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2020, 02:08 PM   #1
memokun
Member
memokun began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2018
Device: none
Open pdfs in Moon+ Reader without importing/copying

I use Calibre Companion to organize my books and want to use Moon+ Reader only for reading. When I open a PDF though, it copies the file to its default directory, and when I open it again, it asks if I want to overwrite the file. Is there any way to just open the file directly from where CC has saved it without importing/copying it?

(It's not a CC issue, Moon+ Reader behaves the same way when I open a PDF from a file manager.)
memokun is offline   Reply With Quote
Old 08-30-2020, 02:27 PM   #2
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
This is the Google way of doing things since android 7.1.

Cannot be fixed. You can still open files directly with old versions of applications. For instance https://f-droid.org/en/packages/com.amaze.filemanager/ will open the file in Moon Reader without making a copy.

The same happens with old versions of CC (up to 5.3, IIRC)

There's a workaround that app devs can implement to fight against it, but is not recommended for Play Store applications, specially looking at the near future with forced scoped storage.
pazos is offline   Reply With Quote
Advert
Old 08-30-2020, 02:52 PM   #3
memokun
Member
memokun began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2018
Device: none
Should have guessed ��
Thanks for the explanation, though!
One more question: How come it can open epubs without asking whether to overwrite them?
memokun is offline   Reply With Quote
Old 08-30-2020, 05:02 PM   #4
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by memokun View Post
Should have guessed ��
Thanks for the explanation, though!
One more question: How come it can open epubs without asking whether to overwrite them?
Sorry, I don't know. I'm not a heavy user of Moon+. But probably there's an option somewhere to avoid the question and just overwrite the file.
pazos is offline   Reply With Quote
Old 09-14-2020, 07:43 PM   #5
Nigol
Groupie
Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.Nigol ought to be getting tired of karma fortunes by now.
 
Nigol's Avatar
 
Posts: 184
Karma: 363616
Join Date: Dec 2010
Location: Montreal, Canada
Device: Kobo Original, Kobo Touch
Quote:
Originally Posted by pazos View Post
This is the Google way of doing things since android 7.1.

Cannot be fixed. You can still open files directly with old versions of applications. For instance https://f-droid.org/en/packages/com.amaze.filemanager/ will open the file in Moon Reader without making a copy.

The same happens with old versions of CC (up to 5.3, IIRC)
Not entirely true, was just looking for a way to stop this behavior. I am also a user of CC but use ReadEra instead. When opening from CC both Moon & ReadEra will make a copy of the file, but when opening a file from a file manager (I tried OnePlus File Manager, Solid Explorer & Samsung My Files) and opening it with ReadEra does not create a copy but opens it directly. The only one that did do a copy was Google Files I had preinstalled on my OnePlus.

So does this mean that Samsung, OnePlus and Solid Explorer are all doing thing that they shouldn't? And why does it do a copy when opening from CC? I am guessing it's something CC (and Google obviously) does explicitly when calling it's Intent, it's sending a copy and all other file manager might just be using an older way that still works. When opening a file in ReadEra it will say Processing Request if it's only opening the file and Downloading File if it's creating a copy, so it's clearly receiving different signals when opening a file. And in Moon's case they just decided to do their own thing and copy the files either way.

It's really annoying and kind of defeats the purpose of Calibre Companion, that should be an Organizer and your other apps Reader only, but now whenever you open a file it creates a copy in your Download folder (for ReadEra), and you then have multiple copies. Because instead of using CC, we could just use the Reader directly to manage the files so there will be no need to create a copy.

Last edited by Nigol; 09-14-2020 at 09:08 PM.
Nigol is offline   Reply With Quote
Advert
Old 09-15-2020, 04:59 AM   #6
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
Faith is not involved here. Just code.

Workarounds are possible and implemented in https://github.com/pazos/filesResolver. KOReader implements the first workaround and MoonReader the second one.

Google engineers also expected workarounds from "lame" internal apps: https://github.com/aosp-mirror/platf...ode.java#L1434
pazos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moon Reader Pro and Importing Gxr031 Android Devices 26 04-06-2022 06:27 PM
[iOS] How to stop Calibre Companion from multiple copying Ebook/PDFs to reader apps? chp380 Calibre Companion 6 05-05-2017 05:20 AM
Moon+ Reader - Importing its own Metadata? Vendy Android Devices 3 05-22-2014 10:41 AM
Moon+: open dictionary directly on long-tap not working with PDFs? nikoski Reading and Management 0 05-04-2014 05:47 AM
Moon Reader copying wrong metadata from Calibre jstabe Android Devices 4 11-10-2012 09:55 PM


All times are GMT -4. The time now is 12:38 PM.


MobileRead.com is a privately owned, operated and funded community.