Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2008, 03:50 PM   #16
uso
Junior Member
uso began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2008
Device: Irex Iliad
Quote:
Originally Posted by jharker View Post
Hardware buttons are handled via GTK/X as key presses. So you should be able to get that pretty easily from within Java. See my extensive discussion in this thread. All hardware buttons except the special folder buttons ("books", "news", etc.) are handled this way.

That thread also discusses how buttons are handled at a more basic level.
Ah.. thanks for the info. That will simplify matters.... - I´ll go looking at that thread :-)

Uso
uso is offline   Reply With Quote
Old 10-22-2008, 04:21 PM   #17
Shaggy
Wizard
Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.Shaggy ought to be getting tired of karma fortunes by now.
 
Shaggy's Avatar
 
Posts: 4,293
Karma: 529619
Join Date: May 2007
Device: iRex iLiad, DR800SG
Quote:
Originally Posted by uso View Post
I doubt they will release the Mobipocket viewer... but depending on how they have structured their code, they may be able to release the code for interacting with the hardware buttons.
This code would be a library for use from other programs, not a complete program by itself.
That code isn't java though. I thought the button driver was written in C.
Shaggy is offline   Reply With Quote
Old 10-22-2008, 04:24 PM   #18
axel77
Fanatic
axel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-books
 
Posts: 584
Karma: 914
Join Date: Mar 2008
Device: iliad
Quote:
Originally Posted by uso View Post
It won´t be the best choice for new development, but easier porting of existing java-applications could potentially be useful :-)

Uso
Sure, if "run everywhere" should be included the iLiad, its nice to have quick porting, that was what java was about. But

Quote:
The framework for buttons/pagebar/refreshing could be quite useful for those of us who prefer programming in java...
It strongly advice against picking java for the iLiad, just because the dev for an Iliad dedicated application "prefers it", probably because of its development comfort, or beacuse he didn't yet went through that C tunnel.
axel77 is offline   Reply With Quote
Old 10-22-2008, 10:25 PM   #19
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by uso View Post
Hi

Any chance that some of the iliad java-code could be released as well?
The framework for buttons/pagebar/refreshing could be quite useful for those of us who prefer programming in java...

Uso (so this i what delurking feels like )
There is a java sdk jar (I forgot its exactly name) in your iLiad. Everything about refreshing, toolbar, pagebar, button are over there. Use a java decopiler and then you can see them.

There are also a few 3rd party java based viewer for iLiad. Decompile and you can see how java works on iLiad. It's quite simple. I think its more easy to program in java than in gtk+ for iLiad. But java class on iLiad is quite limited. So you can't do some fancy design on iLiad in java. C (or C++) and Gtk+ are more capable for sophisicated application on iLiad.

Last edited by ericshliao; 10-22-2008 at 10:33 PM.
ericshliao is offline   Reply With Quote
Old 10-22-2008, 10:53 PM   #20
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I must add that refreshing is never a problem in java code for iLiad platform. In comparison to GTK+, java code works well just as you program on PC. It makes developing a iLiad java app more easy. Besides, based on my experience, on iLiad, java seems to provide better memory management than C. For an experienced C programmer, it's not a problem. For a medicore C programmer, like me, it's hard to implement perfect memory management.
In addition to limited java class on iLiad, there is another drawback for java on iLiad, that is, you can't hide toolbar and pagebar. In contrast, it's easy to do it with GTK+.

Last edited by ericshliao; 10-22-2008 at 11:08 PM.
ericshliao is offline   Reply With Quote
Old 10-23-2008, 12:02 AM   #21
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Quote:
Originally Posted by uso View Post
I doubt they will release the Mobipocket viewer... but depending on how they have structured their code, they may be able to release the code for interacting with the hardware buttons.
This code would be a library for use from other programs, not a complete program by itself.

Uso
Use java decompiler and you can see source code of mobipocket viewer. But I think few people can figure it out how does it work. The code is hard to read.
ericshliao is offline   Reply With Quote
Old 10-24-2008, 07:25 PM   #22
joelypolly
Member
joelypolly has a complete set of Star Wars action figures.joelypolly has a complete set of Star Wars action figures.joelypolly has a complete set of Star Wars action figures.joelypolly has a complete set of Star Wars action figures.
 
Posts: 22
Karma: 328
Join Date: Jul 2008
Device: iliad
just found this i the powerManagement in content lister
// TODO: More powerManagement functionality needs to be implemented here...

made me laugh and cry a little
joelypolly is offline   Reply With Quote
Old 10-26-2008, 04:51 AM   #23
axel77
Fanatic
axel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-booksaxel77 has learned how to read e-books
 
Posts: 584
Karma: 914
Join Date: Mar 2008
Device: iliad
Quote:
Originally Posted by joelypolly View Post
just found this i the powerManagement in content lister
// TODO: More powerManagement functionality needs to be implemented here...

made me laugh and cry a little
The tradegy is, in the 1000 is the same TODO....
axel77 is offline   Reply With Quote
Old 10-26-2008, 10:31 AM   #24
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Actually... I'm not sure what that comment is talking about. It may be a holdover from when we were implementing power management (CPU scaling) in each application simultaneously....?

Now there's a single program that automatically does CPU scaling for everything, all the time. They probably just never took the comments out. I think it's kind of cool to see the thought process on how some of this stuff was developed.
jharker is offline   Reply With Quote
Old 10-26-2008, 10:37 AM   #25
zerospinboson
"Assume a can opener..."
zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.zerospinboson ought to be getting tired of karma fortunes by now.
 
zerospinboson's Avatar
 
Posts: 755
Karma: 1942109
Join Date: Mar 2008
Location: Local Cluster
Device: iLiad v2, DR1000
Quote:
Originally Posted by jharker View Post
Actually... I'm not sure what that comment is talking about. It may be a holdover from when we were implementing power management (CPU scaling) in each application simultaneously....?

Now there's a single program that automatically does CPU scaling for everything, all the time. They probably just never took the comments out. I think it's kind of cool to see the thought process on how some of this stuff was developed.
..which already works at maximum efficiency? (ie. why is it also in the DR then?)
zerospinboson is offline   Reply With Quote
Old 10-26-2008, 12:20 PM   #26
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
Quote:
Originally Posted by zerospinboson View Post
..which already works at maximum efficiency? (ie. why is it also in the DR then?)
Well, I would guess that quite a bit of the code from the iLiad was copied when writing the code for the DR. If the DR's hardware is based on the iLiad's then some of the same code would be quite useful.

At the same time, I was wrong to imply that CPU scaling is the only kind of power management. Depending on the hardware it may also be possible to turn various things off when they're not needed; it's possible that some of that has yet to be implemented.

Also, iRex is talking about implementing suspend-to-RAM on the DR in the future, so maybe it has something to do with that?
jharker is offline   Reply With Quote
Old 11-06-2008, 09:50 AM   #27
DigiDirk
Connoisseur
DigiDirk doesn't litterDigiDirk doesn't litter
 
DigiDirk's Avatar
 
Posts: 73
Karma: 156
Join Date: Dec 2006
Device: iLiad
Just to reuse this thread and in case nobody has noticed before

Part 2 of the sources have been released roughly an hour previously.

Dirk
DigiDirk is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM
iRex Releases DR1000 SDK and source code Adam B. iRex 26 09-29-2009 10:58 AM
iLiad iRex hints at releasing all the iLiad code drago iRex Developer's Corner 50 10-22-2008 10:31 AM
iLiad Is source code of iLiad image viewer available? ericshliao iRex Developer's Corner 1 01-16-2008 02:24 AM
source code?? joblack iRex 1 11-01-2006 12:16 PM


All times are GMT -4. The time now is 06:32 PM.


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