Thread: PRS-T1 Modified Sony home screen
View Single Post
Old 01-12-2012, 02:02 PM   #23
Morkl
Connoisseur
Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.Morkl can talk to the animals.
 
Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
Quote:
Originally Posted by rupor View Post
I have code which could be called from any reader application which makes top portion of the screen as well as standby screen and book lists to work properly (Morkl, let me know if interested). At the moment I am looking on how to integrate this with CoolReader, I am sure this could be done with FB2Reader as well. The reason why reader application needs to follow some rules and it can not be done properly just in home page or content manager code is rather simple - you could open new book from inside of reading application completely bypassing Sony's code.

The reason why it looks like top portion of the home screen (and sometimes standby screen) is working is also rather simple - when book is selected via home page existing code updates last reading time in the database. When book is launched from book lists (content manager) - last reading time is not updated at all. During reboot (or when book is opened in the stock reader) standby screen is reconstructed on the fly from last reading time (there is no file to write). So you will see some really inconsistent screen saver behavior (applicable for "new" icon too).

I also have content manager (EbookContentManager.apk) which properly understands FB2 format (thumbnails and meta information) so maybe we should combine the efforts somewhat?
You are right indeed - in a perfect world every reader app would update the last read time and things would Just Work. That is, however, not quite the case (but it is great that support is being added to the reader apps, of course).

By updating the last read time whenever a book is launched from the screen or content manager, things should work most of the time for any reader as long as the home screen and content manager are the primary ways of browsing books. It's not perfect, but I think it's better than not supporting third party readers (that haven't been modified to support the Sony books db) at all

I would love to take a look at that content manager of yours! Does it work with the Sony Reader PC software as well? I haven't even begun working with the content related ideas, but it would be nice to bring FB2 support to wherever it is possible
Morkl is offline