|
|
Thread Tools | Search this Thread |
03-05-2024, 08:22 AM | #1 |
Mr. Developer
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
KOReader: Please Help Me Find The Code Associated With This Wonderful Animation
Hi wonderful guys over mobileread, I recently started tinkering the source code of KOReader on my machine and I came accross this beautiful loading animation (I really like the animation of the three dots at the bottom of the screen.)
Is anyone aware which script of KOReader's source code is triggering this. I captured that animation while running KOReader on android. The gif is attached below: |
03-05-2024, 09:15 AM | #2 |
cosiñeiro
Posts: 1,344
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
That's a standard android dialog without a frame.
It is in https://github.com/koreader/android-...s.kt#L160-L187 Used while uncompressing APK assets in device's storage. You should see the dots animation once per version. You can't repurpose the dialog for anything non-android. |
Advert | |
|
03-05-2024, 10:54 PM | #3 | |
Mr. Developer
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
03-07-2024, 04:23 PM | #4 | |
cosiñeiro
Posts: 1,344
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
If you want to build something that does some background job while displaying the animation that's harder. A lua state/vm is mostly single threaded. The best you can do is some sort of cooperative multitasking, in the form of lua coroutines |
|
03-12-2024, 01:00 AM | #5 | |
Mr. Developer
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
Advert | |
|
03-12-2024, 10:00 AM | #6 | |
cosiñeiro
Posts: 1,344
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
You're confusing the hability to schedule tasks to run in the future with multithreading. They are not the same. Any tasks scheduled with any of the UIManager facilities (see doc in https://koreader.rocks/doc/modules/ui.uimanager.html) will be executed sequentially on the UIThread, so if one of such tasks takes hours to complete the UI will be blocked for that time too. |
|
03-12-2024, 12:19 PM | #7 | |
Mr. Developer
Posts: 24
Karma: 10
Join Date: Feb 2024
Device: Kindle Voyage
|
Quote:
|
|
Tags |
developer, ereader, koreader, source code |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can KOReader read any html5, javascript and css code? | avnermoshkovitz | KOReader | 1 | 07-12-2021 07:55 AM |
Find OTA code on reboot | qualipso | Kindle Developer's Corner | 2 | 04-11-2021 06:44 AM |
Display Code and animation | curiousgeorge | ePub | 5 | 08-09-2012 11:30 AM |
Find Dialog and XHTML Code View | jondolar | Sigil | 0 | 10-18-2011 11:16 AM |
PRS-600 Where can I find the Linux source code? | Xaphiosis | Sony Reader | 8 | 04-17-2010 12:13 PM |