06-28-2018, 12:50 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2018
Device: Android Phone, Kindle Paperwhite
|
Adding shortcuts to home screen doesn't work
I'm using CC on my Android phone (8.1) with moonreader. Shortcuts do not appear on the homescreen for some reason. Maybe because of the Nova launcher?
|
06-29-2018, 11:39 AM | #2 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
No, it is because Android 8 changed everything about how homescreen icons work. Fixing it must wait until CC is (radically) changed to support the new way that files are passed between apps. Basically, starting in Android 7 CC cannot pass a book file, but instead must pass a copy.
|
12-18-2019, 12:59 PM | #3 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
If you, or somebody, wants to check you can test it with koreader, which just handles action.VIEW for file schemes, ignoring content ones. |
|
12-18-2019, 04:53 PM | #4 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Second, you are missing the main problem. In November 2018 Google started enforcing the requirement that Android apps must "target" a recent android release, specifically Android 8.0 (API 26). If an app targets a release then it must follow the rules for that release. In CC's case this would mean that starting with Android 7, files cannot be passed between apps. Any attempt causes the app to die. This broke CC in very fundamental ways. It is this Google requirement that stopped me from releasing CC Android updates after summer of 2018. It is in fact this requirement that convinced me that I could no longer continue to be responsibile for developing CC (Android). My choice was to let it die or let someone else try. I chose the latter. You say that it works in some cases. Yes, it does, because the current releases of CC "target" Android 6. This causes Android 7 & up to run in "compatibility mode" so that passing files works. It also means that CC cannot be updated on the play store. There is a good chance that the current version of CC will eventually be removed by Google because it doesn't target a recent version of Android. If I were still developing CC I would under no circumstance code around vendor-specific strangeness in this area to try to make passing files work on some devices when targeting Android 8+. There lies madness. Instead I would (attempt) to keep the current behavior for Android 6 while making Android 7+ pass copies of the books (content providers). I suspect that is what the current developer is trying to do, but I don't know that. EDIT: I see from this post that you already know about what I posted above. Apologies for the lecture. Last edited by chaley; 12-18-2019 at 05:27 PM. |
|
12-18-2019, 06:52 PM | #5 |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
I was aware that you're no longer the dev behind CC and that google f*cks android each few releases but I wasn't aware that file providers are tied to a targetSdk version. That makes sense.
BTW thanks for your work on CC and Calibre, specially in the wireless device driver. |
12-19-2019, 09:09 AM | #6 |
Guru
Posts: 995
Karma: 4407864
Join Date: Feb 2009
Location: North Carolina
Device: Kobo Aura1, Nexus7.2, Galaxy Tab A 8.4, Ipad Air & Mini 6
|
Yes, Chaley, thanks for all your hard work. Very understandable your decision to no longer update android cc. I've actually gone back to my old Lg Android 6 for reading. I love my ipad mini, but it is just too cumbersome to work around downloading and updating my ebooks. I just want to read!
|
12-19-2019, 11:03 AM | #7 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
lets say I just about squeeze a 4Gb HD video into the downloads folder of my android 9 tablet, and I want to use a file explorer app to find it and hand it off to a video player, its insane if that 4GB file then has to be copied / moved not pointed at. Even if there is sufficient storage to host a copy, it would take minutes, not seconds to made and hand off such a copy. or, hopefully, the rule is not as black and white as you portray it, and it exempts the issue of using " open with" on large media files ? Though the file size of an issue for e books, let's suppose a new improved targeted for A8 version CC has my e book of collected Shakespeare ,my George Martin omnibus, or some 100Mb graphic novel. Is it really going to be required to make and hand off a copy of each to a reader app, and not just provide a pointer. That copy process will not be instant on a low powered phone or basic tablet and will burn up precious storage space. Surely this destroys much of the utility of any librarian app that is not itself a reader/renderer ? I did try to google more info but I don't know enough about android coding to understand the intricacies of what I found PS I did experiment a little with calibre box though. I found an inscrutable icon ( a right arrow in a box thing) that means open with/pass to my default reader app ( moon reader). When I tap that, a copy appears in books/moonreader/attachments. I have not tried to outsmart the system though by making that attachments folder the default download folder for calibre box. I have CB set to download to books/moonreader so that I can then find and open downloads using the my books tab in moon, and I can delete them with moon once read. CB will jsut them tell me the local library is out of date next time I use it, and will re-scan. Nothing breaks. Last edited by stumped; 12-19-2019 at 11:10 AM. |
|
12-19-2019, 01:23 PM | #8 | ||
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
When the problem arose I looked at the code in Android. There are no exceptions. And yes, this sucks as much as you think. It is also the way iOS works. It sucks there too. |
||
12-19-2019, 03:32 PM | #9 |
Guru
Posts: 608
Karma: 5007204
Join Date: Sep 2014
Location: Calif
Device: Fire hdx 8.9, Tab S2, Tab S5e, Aura ONE
|
IOS 13/ipados was touted to have "file sharing"; a huge lie.
I cannot even 'share' the ios manual which can be downloaded only from an ios or macos computer. This may be just a similar reason why many people still prefer to stay with winxp or win7...... |
12-19-2019, 03:43 PM | #10 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Chaley, Thanks for that. I began thinking I had misunderstood the problem but your extra info helps a lot. Reading a book is different to streaming a movie.
So the folks who like having thousands of books in a librarian app will have to accept needing double the storage, for their reader apps to store copies, or do a lot of hands on micro management of the reader apps storage to free up space after reads are completed. |
12-20-2019, 07:53 AM | #11 |
Groupie
Posts: 180
Karma: 616200
Join Date: May 2014
Location: Spain
Device: Kobo Forma, Hisense A5
|
Yes, that kind of behavior was one of the reasons I never considered entering in the apple ecosystem, and when I read it was entering in modern versions of Android... I'm out of options for mobile so I'll just have to live with it. It's supposed to be good for security, but unusable without a lot of pain for productivity: if you are working on a file and you produce different versions, you'll end up with an unknown version of the file in each of the applications closed boxes.
|
12-20-2019, 08:56 AM | #12 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
maybe using calibre ODPS will become more popular, and will bypass needing a "librarian" on the device. I got that working with Moon reader after getting advice here and it's quite slick
and maybe I will get around to understanding how to use "my Shelf" in moon reader as a organizer. It's a pity that feature comes without any instructions as it's probably easy to have different shelves for different categories - and I think it's all done with database pointers , so a book can be on mutiple "shelves" and no extra copies get created as it is all within one app if any one has or knows of a " for dummies" guide to using " My shelf" in moon please say |
12-24-2019, 07:01 PM | #13 | |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
I'm aware that emulators can open file schemes without problems, following this example: Code:
adb shell cd /sdcard echo "hello world" > test.txt am start -a android.intent.action.VIEW -t 'text/html' -d 'file:///sdcard/test.txt' Code:
try { File file = new File("/sdcard", "test.txt"; // lets assume file exists here... Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(file), "text/plain"); startActivity(intent) } catch(FileUriExposedException e) { // ooohhh, no fun. try the content provider approach instead. } |
|
12-25-2019, 07:33 AM | #14 |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Well, file URIs didn't work in CC when I tried changing the target release, using the Android emulator(s) in Android Studio and on my OnePlus phone. It could be that Huawei took out the restriction.
Another complication is that when using the SAF (Storage Access Framework), it is *very hard* to get a real file path. I used a hack that requires reaching into the kernel to get the mount names. I found on some devices the hack doesn't work. I don't know whether my hack will work if targeting V9 or V10. Unfortunately one must use the SAF when accessing SD card. The Android 10 "Scoped Access" documents imply (strongly) that the SAF will be needed for all storage, not just SD cards. If the hack for getting a file path doesn't work then the app must use Android's SAF content provider. The resulting URI can be handed unchanged to other apps. At this point the problem belongs to Sam & Co. I don't know what they plan to do. I do know that I am (happily) not in the loop. |
12-25-2019, 01:35 PM | #15 | |
Guru
Posts: 608
Karma: 5007204
Join Date: Sep 2014
Location: Calif
Device: Fire hdx 8.9, Tab S2, Tab S5e, Aura ONE
|
Quote:
Also have not bought additional cloud storage; no reason & too expensive just to store books when not needed or readily accessible when I desire, especially in this era of "blackouts" for "fire safety". |
|
Tags |
shortcut, shortcuts |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
M92 screen doesn´t work | juliosoft | Onyx Boox | 3 | 01-18-2013 05:35 AM |
Touch Home button doesn't work after 2.3.1 update. | Ravenesque | Kobo Reader | 3 | 12-21-2012 02:14 PM |
Library doesn't work, eInk side stuck with "Home" screen | andr2k | enTourage eDGe | 4 | 08-04-2012 08:37 AM |
No hibernate option, Home doesn't work | tomsem | enTourage eDGe | 13 | 08-02-2011 05:41 AM |
Adding new format to a book doesn't work | owockadoy | Calibre | 3 | 11-09-2009 11:52 AM |