FORUMS
Remove All Ads from XDA

FBReaderJ Partial Refresh Now Works on Nook2!

40 posts
Thanks Meter: 7
 
By DairyKnight, Member on 24th July 2011, 06:58 AM
Post Reply Email Thread
5th August 2011, 07:14 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by DairyKnight

Here's the Epd source as promised.

All modes should be there. Simplest way to use is putting:

setGL16Mode();

as the first line of your onDraw() listener.

Hello!
Can I use this code in my GPL app (e-book reader Cool Reader)?
 
 
5th August 2011, 10:55 AM |#12  
Junior Member
Thanks Meter: 2
 
More
DairyKnight
It is similar to calls, as in the version FBReaderJ for Spring Design Alex Reader?
github.com/geometer/FBReaderJ-alex/blob/master/src/org/geometerplus/android/fbreader/EPDView.java

PS: geometer's active thread about FBReaderJ:
4pda.ru/forum/index.php?showtopic=101249
6th August 2011, 03:43 PM |#13  
OP Member
Thanks Meter: 7
 
More
Sure. Please move ahead.

I wrote the code in a rush and just realized that I didn't put in a Copyright note in it. So here it is - you're encouraged to use this piece of code for anything, either commercial or free, either close-sourced or open-sourced.

However, do put a line in your "About" section saying that you used a code from dairyknight ([email protected]). That's the only request from me.


Quote:
Originally Posted by Buggins

Hello!
Can I use this code in my GPL app (e-book reader Cool Reader)?

6th August 2011, 03:48 PM |#14  
OP Member
Thanks Meter: 7
 
More
I don't think it's anything similar, unless they share the exact same vendor java driver code.

The 4PDA thread you provided is in Russian and unfortunately I don't understand a single word. If you can, get in touch with geometer and see what he thinks. I'll give all the assistance I can to get the official FBReaderJ working for Nook2.

Quote:
Originally Posted by kaznelson

DairyKnight
It is similar to calls, as in the version FBReaderJ for Spring Design Alex Reader?
github.com/geometer/FBReaderJ-alex/blob/master/src/org/geometerplus/android/fbreader/EPDView.java

PS: geometer's active thread about FBReaderJ:
4pda.ru/forum/index.php?showtopic=101249

6th August 2011, 06:14 PM |#15  
Junior Member
Thanks Meter: 2
 
More
DairyKnight
And I badly speak in english...

geometer e-mail:
geometer at fbreader dot org

www.fbreader.org/contacts.php
Arseny Shmartsev, CEO: [email protected]
Support: [email protected]
9th August 2011, 07:59 AM |#16  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by kaznelson

DairyKnight
geometer e-mail:
geometer at fbreader dot org

Nikolay Pultsin is main FBReader developer. Anybody can get in touch with him by supplied email, he understands and writes in english as well.

As another option... everyone can 'fork' fbreaderj main repositury on github, put patch in code, commit and make pull request to main code trunk.
9th August 2011, 08:24 AM |#17  
Junior Member
Thanks Meter: 0
 
More
DairyKnight, many thanks for your work!

There are some questions about your code.

I need to call setGL16Mode() for every page in GL16 mode, but A2 and DU modes required setting mode only once. I.e. if I skip setGL16Mode() before draw, device is fully refreshed. But how I can set "default mode" for DU, i.e?
Other issue is about same, but in other context - before calling "Setting Dialog" (or any other fullscreen dialog) I need to turn controller onto "default mode" - there are many artefacts on screen without this. With GL16 this is not question, but when selected DU or A2 mode... Temporarily I call setGL16Mode() - this is better then nothing.

Another question - NomadRunserver suggested GL16 + ACTIVE mode for fast page turns, but GL16 + ONESHOT_ALL in your code (in comments, if precise). This is better?

Quote:
Originally Posted by DairyKnight

Here's the Epd source as promised.

All modes should be there. Simplest way to use is putting:

setGL16Mode();

as the first line of your onDraw() listener.

update:
setGL16Mode() in DairyKnight code invokes GL16 + ONESHOT
other variants:
1 - ACTIVE
2 - ONESHOT
3 - CLEAR
4 - ACTIVE + ALL
5 - ONESHOT + ALL
6 - CLEAR + ALL
Modes 4, 5 and 6 are permanent, 1, 2, 3 - temporary.
CLEAR modes make full refresh.
I can't see much defferences between ONESHOT and ACTIVE, but last seems to be more clear. I preferred ACTIVE + ALL.
BTW, nook reader make full refresh on pages with images and next one. Wise decision, because partial refreshing lead to ghostings and artifacts in such cases.
11th August 2011, 09:41 PM |#18  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by DairyKnight

Sure. Please move ahead.

I wrote the code in a rush and just realized that I didn't put in a Copyright note in it. So here it is - you're encouraged to use this piece of code for anything, either commercial or free, either close-sourced or open-sourced.

However, do put a line in your "About" section saying that you used a code from dairyknight ([email protected]). That's the only request from me.

EPD settings for Nook Touch added to CoolReader
(thanks to a_lone)
Can be downloaded from sourceforge (crengine project). Can't publish link - antispam protection.

Your name is in about/third party, source code and git change history
12th August 2011, 04:18 AM |#19  
Junior Member
Thanks Meter: 0
 
More
CoolReader apk is attached.
Attached Files
File Type: apk cr3_0_49_13.apk - [Click for QR Code] (1.86 MB, 404 views)
14th August 2011, 07:10 PM |#20  
Junior Member
Thanks Meter: 1
 
More
Could you please post the build of fbreader with full page refresh? I'm rather new to Android development, and I'm not familiar with fbreader source; trying to figure out how to plug in N2EpdController into fbreader would take me a long time. Thanks!
The Following User Says Thank You to lyosham For This Useful Post: [ View ] Gift lyosham Ad-Free
2nd September 2011, 05:01 PM |#21  
Junior Member
Thanks Meter: 0
 
More
i install FBReaderJ-unsigned.apk by root explorer in my nook, but it show "application not installed"
help me
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes